Can I change the view of a 360 YouTube video with the gyroscope in the browser?

断了今生、忘了曾经 提交于 2020-01-01 19:48:13

问题


I would like to embed a 360 youtube video into a web page and then allow the user to 'look around' by affecting which direction of the video is displayed based on the phone's gyroscope.

Does Youtube provide an API for this level of control in the browser?

(See here for an example of a 360 youtube video: https://www.youtube.com/watch?v=gQEyezu7G20)


回答1:


The YouTube IFrame API (API for embedding a YouTube video into a webpage) doesn't currently allow for controlling pan/tilt of 360 degree videos. I filed an enhancement request for this feature.



来源:https://stackoverflow.com/questions/30732653/can-i-change-the-view-of-a-360-youtube-video-with-the-gyroscope-in-the-browser

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!