问题
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
回答1:
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
回答2:
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
来源:https://stackoverflow.com/questions/37564161/load-360-degree-video-on-youtube-using-vrvideoview-google-vr-sdk