Merge pull request #3724 from samcon/fix_resume_webos
(cherry picked from commit bc48691738591bfac698fb79b1f4997d32dc8f34) Signed-off-by: Bill Thornton <billt2006@gmail.com>
This commit is contained in:
committed by
Bill Thornton
parent
e455c70e36
commit
b8ae732c98
@@ -1376,6 +1376,9 @@ function tryRemoveElement(elem) {
|
||||
// Can't autoplay in these browsers so we need to use the full controls, at least until playback starts
|
||||
if (!appHost.supports('htmlvideoautoplay')) {
|
||||
html += '<video class="' + cssClass + '" preload="metadata" autoplay="autoplay" controls="controls" webkit-playsinline playsinline>';
|
||||
} else if (browser.web0s) {
|
||||
// in webOS, setting preload auto allows resuming videos
|
||||
html += '<video class="' + cssClass + '" preload="auto" autoplay="autoplay" webkit-playsinline playsinline>';
|
||||
} else {
|
||||
// Chrome 35 won't play with preload none
|
||||
html += '<video class="' + cssClass + '" preload="metadata" autoplay="autoplay" webkit-playsinline playsinline>';
|
||||
|
||||
Reference in New Issue
Block a user