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
Add the node-youtube-dl node module to your project
Get direct youtube video url
Create your own video tag with direct url as src
Found this on github! Bind an click on the full screen button. Then for example switch to an other fullscreen frame.
// video tag with specific id
$('#video_trailer').bind('click', function(e) {
var hit = false;
var x = e.pageX - this.offsetLeft;
var y = e.pageY - this.offsetTop;
var w = this.offsetWidth;
var h = this.offsetHeight;
if (w < 800) {
hit = (y > h - 35) && (x > w - 45);
} else {
var xmin = w / 2 + 355;
var xmax = w / 2 + 390;
hit = (y > h - 35) && (x > xmin && x < xmax);
}
if (hit) {
// for example switch to new trailerFullscreen frame
setTimeout(function () {window.location = "trailerFullscreen.html"; }, 2000);
e.preventDefault();
}
});
I test this an its working with the current master
No description provided.
The text was updated successfully, but these errors were encountered: