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.
Related
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
I'm fascinated by the 360 videos on YouTube as of recently. I'd like to develop a sample Android application that can play a 360 video and be able to pan/swipe with it along with being able to use accelerator/gyroscope.
Few questions:
What file format is 360 video? Where can I download sample 360 video?
Is it even possible to use Android library to play 360 video? If so, what player would I need to use to "play" 360 video?
How can I handle pan/swipe for a 360 video played by the native player?
Is it possible to play an existing YouTube 360 video using Android native Player? And at the same time be able to handle pan/swype/gyro?
Please provide a code sample. Thanks!
360 Videos are just videos recorded by a 360 camera. What separates them from a normal video is just the meta data.
Use panframe library for Android/iOS.
http://www.panframe.com
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!
I've looked everywhere but it doesn't to be any mention to it anywhere. I can reproduce them as any other video, but not see the 360 controls as in the youtube app.
i have a problem with android and phonegap. I am finding out the best way to load an online video stream from youtube, my code is the below:
The video will not load, it displays a screen with the red youtube button but the video will never load on play...
your help is very much appreciated..
Thank you.
If you are using HTML5 video on Android, it is not supported by the operating system on Android 2.x devices. Try this native plugin: https://github.com/phonegap/phonegap-plugins/tree/master/Android/VideoPlayer