pixeltailgames / cinema

:movie_camera: Gamemode for Garry's Mod featuring multiplayer video streaming
http://www.pixeltailgames.com/cinema/
87 stars 63 forks source link

Viooz.co new player #50

Closed dreadlordization closed 10 years ago

dreadlordization commented 10 years ago

Some of the new videos on viooz has a different player that does not automatically play the video nor bring it to full screen.

an example movie would be the new robocop movie: http://viooz.co/movies/23826-robocop-2014.html

WinterPhoenix commented 10 years ago

It seems to be extremely buggy with Seeking as well even outside of being Embedded...

samuelmaddock commented 10 years ago

The alternate player seems to use videojs. Interfacing with the player is possible by doing something like this:

var player, key;
for (key in videojs.players) {
   player = videojs.players[key];
   player.controls(false);
   player.play();
   player.currentTime(180); // seek to 180 seconds
}

Video player source code

I can't figure out a way to grab only the one player on the page, but looping through all registered players should work fine. I'll look into implementing this soon-ish.

samuelmaddock commented 10 years ago

This has been fixed.