Embed: add playsinline tag for iphones to webrtc and html5 players

This commit is contained in:
Cat 2020-07-10 17:47:17 +02:00 committed by Thulinma
parent a05dba0ce8
commit abba35f655
4 changed files with 5 additions and 2 deletions

View file

@ -108,6 +108,8 @@ p.prototype.build = function (MistVideo,callback) {
//TODO verify: not required if player is loaded from same domain as it should always be when not in dev mode?
video.setAttribute("crossorigin","anonymous");//required for subs, breaks ogg?
video.setAttribute("playsinline",""); //iphones. effin' iphones.
var source = document.createElement("source");
source.setAttribute("src",MistVideo.source.url);
video.source = source;

View file

@ -40,6 +40,7 @@ p.prototype.build = function (MistVideo,callback) {
}
var video = document.createElement("video");
video.setAttribute("playsinline",""); //iphones. effin' iphones.
//apply options
var attrs = ["autoplay","loop","poster"];