Stream youtube video for Google Cardboard - Android [closed]
Asked Answered
D

0

10

I want to stream a 360 video from YouTube in my android app in such a way that it is compatible with Google Cardboard- that is, I want the video to be streamed side by side like in CardboardView.

I have been searching the internet about this and I don't seem to have much luck with it. So any amount of help would be heavily appreciated. Thanks in advance!

Downy answered 16/6, 2015 at 14:31 Comment(6)
did you check the official SDK developers.google.com/cardboard/overview I'm sure there must be something there.Stiffnecked
the official SDK doesn't seem to have anything specific about playing videos, let alone streaming from youtube. Do let me know if you find anything relevant there. I have been looking too! @StiffneckedDowny
I just read a bit on it. Apparently CardboardView is an extension of GLSurfaceView. That means that all the cardboard stuff is run directly over OpenGL (which makes sense). So probably you next step of research should be how to show videos through a OpenGL view. This maybe: #9376098Stiffnecked
@Stiffnecked I did use the VideoSurfaceView from the link you mentioned, it plays the video perfectly well, but two more things to add to it- 1) support for playing 360 videos and 2) split the screen into 2 and play it side by side for Google cardboard. I'm a newbie with opengl and VR. I'd really appreciate if you could help me any more with this!Downy
and 3) it has to stream from youtube, and not play from resources or the sdcard!Downy
Hi, did you resolved it ?Scalene

© 2022 - 2024 — McMap. All rights reserved.