Embed: add playsinline tag for iphones to webrtc and html5 players
This commit is contained in:
parent
a05dba0ce8
commit
abba35f655
4 changed files with 5 additions and 2 deletions
|
@ -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;
|
||||
|
|
|
@ -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"];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue