dosa
dosa

Reputation: 635

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

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

Upvotes: 2

Views: 2108

Answers (2)

Nick
Nick

Reputation: 321

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

Upvotes: 2

Jinu
Jinu

Reputation: 8675

enter image description here

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

Upvotes: 0

Related Questions