1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

revert back

This commit is contained in:
grafixeyehero 2019-09-26 21:14:23 +03:00
parent 20c23dc728
commit 350463a1e7

View file

@ -1398,10 +1398,13 @@ define(['browser', 'require', 'events', 'apphost', 'loading', 'dom', 'playbackMa
cssClass += ' htmlvideoplayer-moveupsubtitles'; cssClass += ' htmlvideoplayer-moveupsubtitles';
} }
// Can't autoplay in these browsers so we need to use the full controls, at least until playback starts
if (!appHost.supports('htmlvideoautoplay')) { if (!appHost.supports('htmlvideoautoplay')) {
html += '<video class="' + cssClass + '" preload="metadata" autoplay="autoplay" webkit-playsinline playsinline>';
} else {
html += '<video class="' + cssClass + '" preload="metadata" autoplay="autoplay" controls="controls" webkit-playsinline playsinline>'; html += '<video class="' + cssClass + '" preload="metadata" autoplay="autoplay" controls="controls" webkit-playsinline playsinline>';
} else {
// Chrome 35 won't play with preload none
html += '<video class="' + cssClass + '" preload="metadata" autoplay="autoplay" webkit-playsinline playsinline>';
} }
html += '</video>'; html += '</video>';