some fixes

This commit is contained in:
Thomas 2020-10-13 16:35:51 +02:00
parent 676e540059
commit 3866317597
3 changed files with 4 additions and 7 deletions

View File

@ -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();

View File

@ -47,6 +47,7 @@
<com.google.android.exoplayer2.ui.PlayerView
android:id="@+id/media_video"
android:animateLayoutChanges="true"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center" />

View File

@ -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" />
<ImageButton
android:id="@id/exo_shuffle"
style="@style/ExoMediaButton.VR" />
<ImageButton
android:id="@id/exo_repeat_toggle"
style="@style/ExoMediaButton" />
<ImageButton
android:id="@id/exo_play"