I'm using ExoPlayer to create an VR video I have a 360 degree video and I did this
<com.google.android.exoplayer2.ui.PlayerView
android:id="@+id/video_view_player"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:fastforward_increment="15000"
app:surface_type="spherical_gl_surface_view"
app:rewind_increment="15000"
app:controller_layout_id="@layout/content_player_controller"
android:background="@color/black"
app:shutter_background_color="@color/black"
app:show_buffering="always"
app:show_timeout="3000" />
and in PlayerActivity I setDefaultStereoMode
player?.prepare(mediaSource)
(player_view.videoSurfaceView as SphericalGLSurfaceView?)!!.setDefaultStereoMode(
C.STEREO_MODE_MONO
)
what I need is something like this