How to create dual view for Youtube in Android VR app? - android

I want to create an app that allows you to watch regular Youtube videos in a VR headset (that's normal videos, not VR 360 videos).
Does anyone know how to embed two youtube viewers in the same activity, playing the same video to create the stereoscopic views for a VR type app?
It doesn't seem you can do with with the Youtube Android API as it only lets you play one Youtube viewer at a time.
It's definitely possible, as this app shows ...
https://play.google.com/store/apps/details?id=com.ekm.youtubevr3dvideos
Thanks in advance.

As stated by #Tempus, you can use the Google Cardboard which lets you experience virtual reality in a simple and fun way. With Cardboard and the YouTube mobile app, you can even watch 360 degree videos for an immersive experience.
Also, you can check this documentation on how to embed VR view.
VR View sample code:
There are two sample apps which demonstrate the VR View functionality in the SDK: simplepanowidget and simplevideowidget. Both of these samples are single activity applications that display an embedded panoramic image or video using VrPanoramaView and VrVideoView, respectively.

Related

Support for SBS left/right videos with Google VR SDK

I have some side-by-side left/right videos (in mp4 format) and my employer wants me to make an app that use the Google VR SDK to play videos for CardBoard users.
Can the Google VR SDK play these videos (without anything to do my self for the rendering) by taking the left side of the video for the left eye and the right side of the video for the right side?
I see that there's a VrVideoView class that has a loadVideo method that takes a VrVideoView.Option. In these options, there's a TYPE_STEREO_OVER_UNDER.
In order to be clear my questions are:
Has the Google VR SDK a viewer that can play SBS Left/Right video ?
If not, has the Google VR SDK a viewer that can play a SBS Over/Under video?
If yes, should i say my employer "instead of doing SBS left/right videos, you should do SBS Over/Under videos in mp4 format because they are directly handled by the Google VR SDK" ?
Thanks for your help.
So, if the you want to play a 360° stereoscopic over/under video, the VrVideoView can play it.
If you want to play normal stereoscopic videos, you have to manage the rendering by yourself and take the good part of the video each time you do the renderring for an eye.
Quick and dirty example :
https://github.com/Zanfas/Cardboard_VideoPlayer

How to enable cardboard mode in Youtube Android Player API?

I want to enable viewing 360-degree videos from Youtube inside my app in the cardboard mode which splits the video into two halves for the two lenses in a Google cardboard, like in the Youtube app. I'm using Youtube's Player API for Android to show youtube video's in my app but I don't see any option to enable cardboard mode in the YouTubePlayer interface docs.
Please advice how can this be done.
Thanks
Seems that Google VR is now much more easy to use as they provide all the tools you need through the Android SDK.
Seems also that equirectangular format is the most widely accepted format now.
See: https://developers.google.com/vr/android/samples/video360

Is there anyway to Embed youtube 360 video to Android

I want to live stream a 360 video to my android app.
The main function of the app is to watch live 360 videos.
I tried using the YouTube API, but it does not work as it doesn´t render the video. I tried using the Google VRVideoView from the cardboard API. But it seems it can´t parse YouTube URI.
Is there any way I can do this? Or any alternative platform that supports 360 video steaming on mobile?
I have used Pan frame SDK to play 360 video in Android App. I have updated the complete source code in Github,
https://github.com/JayaprakashR-Zealot/360VR
Please let me know if you find any issues.

What are the Intent to open Youtube app directly opened in Cardboard Viewer mode in android

Developers,
We have requirement to open 360 degree youtube videos from our applications.
But we want to open youtube app directly in cardboard viewer mode playing videos.
This is mainly for android application development. Thanks a lot in advance.
Please note we already know how to open videos full screen and user presses cardboard button to go into mode.
One such link of youtube video is Visit Hamilton Island in 360˚ Virtual Reality with Qantas
I had the same issue, it looks like it is not possible right now.

How to play youtube videos in the Background using Presentation Class (Intel WiDi)

Am working with Wireless Displays. What i am trying to do is play an YouTube video on my secondary display and use my mobile screen for other purposes. I currently use Service/Presentation to stream data to the secondary screen while i do other activities on my mobile screen. I want to do the same with youtube videos. I am using YouTube API. Kindly help.

Categories

Resources