mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Fix for IE autoplay/controls
IE is non-standard regarding the autoplay property. IE uses autoplay="autoplay" http://msdn.microsoft.com/en-us/library/ie/ff974744(v=vs.85).aspx
This commit is contained in:
parent
42f65dfd98
commit
a52e4c4158
1 changed files with 5 additions and 3 deletions
|
@ -803,9 +803,11 @@
|
|||
|
||||
// Can't autoplay in these browsers so we need to use the full controls
|
||||
if (requiresControls) {
|
||||
|
||||
|
||||
html += '<video class="itemVideo" id="itemVideo" preload="none" autoplay controls>';
|
||||
if ($.browser.msie) {
|
||||
html += '<video class="itemVideo" id="itemVideo" preload="none" autoplay="autoplay">';
|
||||
} else {
|
||||
html += '<video class="itemVideo" id="itemVideo" preload="none" autoplay controls>';
|
||||
}
|
||||
} else {
|
||||
|
||||
// Chrome 35 won't play with preload none
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue