yanwsh / videojs-panorama

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

event "devidemotion" not suported anymore by chrome #158

Open GandalfPT opened 6 years ago

GandalfPT commented 6 years ago

Hi,

I have been trying to implement this plugin so that i could use 360 videos with the mobile gyroscope, to no success.After some debuging i discovered that the event that you use to call the "handleMobileOrientation" function, doesnt fire anymore on chrome.

The only event that chrome reacts to now is the "deviceorientation", i have been abble to change this, but the math must be diferent now, and thats out of my league.....

So, can you please change this so this works again on mobile?

Thanx.

nicolasabric commented 6 years ago

If interested here are two chromium issues that are related:

Using the deviceorientation event instead of devicemotion event might be an issue due to the second bug.