Video playback on TextureView and DepthPageTransformer.

This commit is contained in:
Alan Evans
2019-07-30 14:25:35 -04:00
parent 0c0d7aeead
commit a6890fc8dd
4 changed files with 56 additions and 26 deletions

View File

@@ -1,13 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
<FrameLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
<VideoView android:id="@+id/video_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="center"
android:gravity="center"/>
<com.google.android.exoplayer2.ui.PlayerView
android:id="@+id/video_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="center"
android:gravity="center"
app:surface_type="texture_view"
app:player_layout_id="@layout/media_preview_exoplayer_layout"/>
</FrameLayout>