You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the following example code, full-screening the video (if it's the item that plays, see #119) will correctly scale the video to full height and width, but on source rotation (every five seconds) the full-screen mode is preserved, but the video reduces down to a smaller size, leaving the rest of the screen black and unused.
extendslayouts/mediablockcontent
h1 yo
.player
video
blockscriptsscript.
//var player = plyr.setup();plyr.setup();
var player =document.getElementsByClassName('player')[0].plyr;
var sources = [
{
type:'audio',
sources: [{
src:'http://inumedia.io/whalestep.mp3',
type:'audio/mp3'
}],
autoplay:true
},
{
type:'youtube',
sources:'SZO5QYP-GeQ',
autoplay:true
}
];
setInterval(function() {
player.source(sources[Math.floor(Math.random() *2)]);
}, 5000);
(function(d, p){
var a =newXMLHttpRequest(),
b =d.body;
a.open("GET", p, true);
a.send();
a.onload=function(){
var c =d.createElement("div");
c.style.display="none";
c.innerHTML=a.responseText;
b.insertBefore(c, b.childNodes[0]);
}
})(document, "/img/sprite.svg");
The text was updated successfully, but these errors were encountered:
When using the following example code, full-screening the video (if it's the item that plays, see #119) will correctly scale the video to full height and width, but on source rotation (every five seconds) the full-screen mode is preserved, but the video reduces down to a smaller size, leaving the rest of the screen black and unused.
The text was updated successfully, but these errors were encountered: