mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-18 03:18:19 -07: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
@ -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…
Reference in New Issue
Block a user