问题
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