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:
Tim Hobbs 2014-05-14 18:44:50 -07:00
parent 42f65dfd98
commit a52e4c4158

View File

@ -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