Does GCSVideoView work with YouTube 360-degree live streaming?

落花浮王杯 提交于 2019-12-11 12:45:32

问题


I saw this announcement today about YouTube streaming 360 video, https://youtube.googleblog.com/2016/04/one-step-closer-to-reality-introducing.html

Does GCSVideoView loadFromUrl: work? Code below modified from VideoWidget iOS sample doesn’t show 360 video...

NSString *videoPath =@"https://www.youtube.com/watch?v=Db-uq08ydI4";
[_videoView loadFromUrl:[[NSURL alloc] initFileURLWithPath:videoPath]];

Excited to see this working! Thanks!


回答1:


Before anything, check this question answer's

I'm really looking forward to see a working answer to this... Working myself into a possible solution..

What I found out is that GCSCardboardView is an extension of GLSurfaceView. All the Cardboard Viewports and Proyections are on top of OpenGL. I'm no expert but the way to go (for me) is 'How to show videos through an OpenGL view'.

Second step would be: Create a Pixel Buffer in OpenGL to support video stream.. that's where i'm stuck.




回答2:


The Google VR SDK is made to turn a 360º video file into the VR environment. Youtube is an HTML page. If you could access the stream directly, you would be able to use the GVRVideoView.



来源:https://stackoverflow.com/questions/36707121/does-gcsvideoview-work-with-youtube-360-degree-live-streaming

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