Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix trailer full screen. #10

Closed
Japoilski opened this issue Apr 8, 2014 · 2 comments
Closed

Fix trailer full screen. #10

Japoilski opened this issue Apr 8, 2014 · 2 comments
Labels
Milestone

Comments

@Japoilski
Copy link
Contributor

No description provided.

@Japoilski Japoilski added the bug label Apr 8, 2014
@Japoilski Japoilski added this to the Beta 1.5 milestone Apr 8, 2014
@Japoilski
Copy link
Contributor Author

I still not have found a solution for the embed Youtube full screen.

Node-webkit problem.
nwjs/nw.js#55

Anyone has a solution?

@Japoilski Japoilski removed this from the Beta 1.5 milestone Apr 21, 2014
@gtuk
Copy link
Contributor

gtuk commented Apr 26, 2014

Not a solution but maybe an workaround.

  1. Add the node-youtube-dl node module to your project
  2. Get direct youtube video url
  3. Create your own video tag with direct url as src
  4. 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

@Japoilski Japoilski added this to the Flixtor 1.0.0 milestone May 5, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants