I would like to set up a javascript listener on an iframe youtube 360 video player that would capture the pan/tilt coordinates of the 360 panorama that is being rotated.
Does anyone know if this is possible or some documentation for an api of the youtube 360 player? I have not been able to find any myself.
The ability to read the pan/tilt coordinates isn't currently supported. There is no mention of 360 degree video players in the documentation. I filed a enhancement request for this feature.
I'm using the youtube api already to stream live VR :
https://developers.google.com/youtube/v3/live/docs/liveBroadcasts#contentDetails.projection
check the object Livebroadcast object : you can specify : "rectangular" or "360"
NodeJs Example :