mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
switch lording html
This commit is contained in:
parent
a2bde879aa
commit
20c23dc728
1 changed files with 3 additions and 6 deletions
|
@ -1398,13 +1398,10 @@ 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" 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 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>';
|
html += '</video>';
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue