2

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

Community
  • 1
  • 1
dosa
  • 635
  • 2
  • 6
  • 11

2 Answers2

2

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

skywinder
  • 21,291
  • 15
  • 93
  • 123
Nick
  • 311
  • 1
  • 10
0

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

Jinu
  • 8,665
  • 4
  • 32
  • 37