I'm trying to stream youtube 360 videos using the MediaPlayer class. Few solutions which I found (this, this and this) suggested using the google api to get RTSP links to youtube videos. However, that API is deprecated and also had problems with a low quality stream.
The other solution was showing the video in a Webview, which doesn't work for me as I need to show the video in a split window cardboard mode for Google Cardboard along with controlling the playback. The same thing with the Youtube player API which doesn't seem to have a Cardboard mode.
I could download the video and show but I'm trying to avoid that.
Is there any other way to stream youtube video inside an android app? If not, would appreciate if someone could direct me to an quick way to setup a RTSP stream.
Thanks