Skip to content

Commit

Permalink
Get simple play/pause working for mp4 items.
Browse files Browse the repository at this point in the history
  • Loading branch information
creativedrewy committed Sep 16, 2021
1 parent a174cd2 commit d5e7fdb
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ fun VideoViewer(
factory = {
StyledPlayerView(it).apply {
hideController()
useController = false
setShowBuffering(StyledPlayerView.SHOW_BUFFERING_ALWAYS)

player = exoPlayer
Expand Down
13 changes: 13 additions & 0 deletions app/src/main/res/layout/exo_styled_player_control_view.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">

<ImageButton android:id="@id/exo_play_pause"
android:layout_width="50dp"
android:layout_height="50dp"
android:layout_gravity="center"
android:background="#99000000"
style="@style/ExoMediaButton.Play" />

</FrameLayout>

0 comments on commit d5e7fdb

Please sign in to comment.