How to enable cardboard mode in Youtube Android Pl

2019-07-20 15:30发布

问题:

I want to enable viewing 360-degree videos from Youtube inside my app in the cardboard mode which splits the video into two halves for the two lenses in a Google cardboard, like in the Youtube app. I'm using Youtube's Player API for Android to show youtube video's in my app but I don't see any option to enable cardboard mode in the YouTubePlayer interface docs.

Please advice how can this be done. Thanks