Load 360 degree video on youtube using VrVideoView (Google VR SDK)?

怎甘沉沦 提交于 2019-12-09 20:42:56

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!