diff --git a/app/src/main/java/app/fedilab/fedilabtube/PeertubeActivity.java b/app/src/main/java/app/fedilab/fedilabtube/PeertubeActivity.java index 373decd..71407e8 100644 --- a/app/src/main/java/app/fedilab/fedilabtube/PeertubeActivity.java +++ b/app/src/main/java/app/fedilab/fedilabtube/PeertubeActivity.java @@ -874,6 +874,8 @@ public class PeertubeActivity extends AppCompatActivity implements CommentListAd MediaSessionCompat mediaSession = new MediaSessionCompat(this, getPackageName()); MediaSessionConnector mediaSessionConnector = new MediaSessionConnector(mediaSession); mediaSessionConnector.setPlayer(player); + PlayerControlView controlView = playerView.findViewById(R.id.exo_controller); + controlView.hide(); playerView.setControllerAutoShow(false); mediaSession.setActive(true); enterPictureInPictureMode(); diff --git a/app/src/main/res/layout/activity_peertube.xml b/app/src/main/res/layout/activity_peertube.xml index f850452..b0455ab 100644 --- a/app/src/main/res/layout/activity_peertube.xml +++ b/app/src/main/res/layout/activity_peertube.xml @@ -47,6 +47,7 @@ diff --git a/app/src/main/res/layout/exo_playback_control_view.xml b/app/src/main/res/layout/exo_playback_control_view.xml index a11a6ae..a777771 100644 --- a/app/src/main/res/layout/exo_playback_control_view.xml +++ b/app/src/main/res/layout/exo_playback_control_view.xml @@ -15,6 +15,7 @@ android:layout_height="wrap_content" android:layout_gravity="bottom" android:background="#CC000000" + android:animateLayoutChanges="true" android:layoutDirection="ltr" android:orientation="vertical" tools:targetApi="28"> @@ -34,13 +35,6 @@ android:id="@id/exo_rew" style="@style/ExoMediaButton.Rewind" /> - - -