yanwsh / videojs-panorama

a plugin for videojs run a full 360 degree panorama video.
http://yanwsh.github.io/videojs-panorama/
Other
492 stars 160 forks source link

Return to vert/horiz center programmatically #85

Closed icetronics closed 7 years ago

icetronics commented 7 years ago

Hi, Thanks for this awesome plugin! Could you please help me how is it possible to return to the initial lat/lon from outside? (e.g. I would put a button on the player so the user can reset their orientation) Thanks a lot in advance.

quintenm commented 7 years ago

+1 I will follow this thread, I opened also a issue with same question, in combination with socket io. So I can fully control the video on other devices.

yanwsh commented 7 years ago
var canvas = player.getChild('Canvas');
canvas.lat
canvas.lon
icetronics commented 7 years ago

Works great, thanks, @yanwsh! Is there a possibility to make this reset animated?

icetronics commented 7 years ago

I see your comment: https://github.com/yanwsh/videojs-panorama/issues/52#issuecomment-277162947 Is there an update when this could be expected? Or some thoughts on it how one could achieve it? Thanks!