I want to load a 360 degree video, which is on youtube, in an native android app using VrVideoView (Google VR SDK).
Looking at the android api reference here, it doesn't seem to be supported,
but it seems to be available for iOS version?
Is there anyway to do this on android? Thanks
You can't play YouTube videos in custom video player because of YouTube content policy.
Even if you get video stream URL, your application will be rejected from Google Play.
The only thing you can do is to use Android YouTube player API
In the case of a 360 YouTube video it is 'Mono 360 uses a single pano.'
You can solve this problem by changing VrVideoView.Options
VrVideoView.Options options = new VrVideoView.Options();
options.inputType = VrVideoView.Options.TYPE_MONO;
videoWidgetView.loadVideoFromAsset("<your local youtube video>", options);
if you are not integrated sdk yet here is the .
link
for more info link
Related
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
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.
I am using youtube api for android to display youtube videos in my app. Normal videos stream very well, but youtube live streaming videos get stuck after few minutes in certain hardwares. These live streaming videos even got stuck when played usiing youtube app within these devices, while were playing completely fine using chrome browser.
Once initialized, I use the following line to play any youtube video:
youTubePlayer.loadVideo(id);
My queries are the following ?
What streaming protocol does youtube use for live streaming within Android ? Is it different with chrome browser and youtube app ?
What can be done to enable my app with seamless youtube live streaming ?
P.S. All my devices I have tested use Android version 4.4+
How to play youtube, vimeo, amazon s3 bucket video in Android Native Player?
I want play embedded video and simple video url like(.mp4, .m3u8) both in Android native player so, is there way to play video on same.
Now, I am using better approach, when i want to play Youtube video then i am using youtube player provided by youtube Api.
Other third party embedded url parse as per given standard.
For Native Player, I use customize media player.
I am looking for a way to stream my videos from vimeo.com to android phone, their API is only available for Web, I have also tried to embed their player in WebView but that way I can see the thumbnail but video won't play, I am using Android 2.2 and Have Flash Player installed.
Is there way to make embedded players work on android or any other better way to do it?
You don't have to use the adv api to play vimeo videos. This is the video url the oembed api uses. I managed to get this rendering and playing in webview.
http://player.vimeo.com/video/<VIDEO_ID_GOES_HERE>?player_id=player&title=0&byline=0&portrait=0&autoplay=1&api=1
Also worth checking flash player is enabled and installed
No you have to use the advanced api and have the user get authorized ive have been trying to find a way around this but have not
the real url would be something like this
http://player.vimeo.com/play_redirect?quality=mobile&clip_id=s00000000&time=1318531921&sig=4c8a2fcb3303c5b76112046e84f516f8&type=mobile_site
not
player.vimeo.com/video/0000000
which the sig is passed after your set up the oauth with the advanced api which is your key and secret after authorization