Support for playing video in-app

// FREEBIE

Closes #5892
This commit is contained in:
Moxie Marlinspike
2016-11-26 12:10:14 -08:00
parent 8b342ee18b
commit 69b102bfe3
7 changed files with 121 additions and 13 deletions

View File

@@ -11,4 +11,10 @@
android:layout_height="match_parent"
android:contentDescription="@string/media_preview_activity__image_content_description" />
<org.thoughtcrime.securesms.video.VideoPlayer
android:id="@+id/video_player"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:visibility="gone"/>
</RelativeLayout>

View File

@@ -0,0 +1,13 @@
<?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">
<VideoView android:id="@+id/video_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="center"
android:gravity="center"/>
</FrameLayout>