I am trying to play youtube video using android cardboard sdk provided by google but I am not able to play it. Here is my code
Options options = new Options();
options.inputFormat = Options.FORMAT_HLS;
options.inputType = Options.TYPE_MONO; // for 360 video
videoWidgetView.loadVideo(Uri.parse("https://www.youtube.com/watch?v=xyzzyz"), options);
Error Log :
E/VrVideoPlayer: 205251285AdaptiveMediaSourceEventListener.onLoadError com.google.a.a.g.v: Input does not start with the #EXTM3U header.