Use exoplayer for playing video on API 16+ devices

// FREEBIE
This commit is contained in:
Moxie Marlinspike
2017-04-13 14:15:06 -07:00
parent fad697ba2a
commit 4fd41080ac
6 changed files with 264 additions and 13 deletions

View File

@@ -0,0 +1,14 @@
<?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">
<com.google.android.exoplayer2.ui.SimpleExoPlayerView
android:id="@+id/video_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="center"
android:gravity="center"/>
</FrameLayout>