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()); MediaSessionCompat mediaSession = new MediaSessionCompat(this, getPackageName());
MediaSessionConnector mediaSessionConnector = new MediaSessionConnector(mediaSession); MediaSessionConnector mediaSessionConnector = new MediaSessionConnector(mediaSession);
mediaSessionConnector.setPlayer(player); mediaSessionConnector.setPlayer(player);
PlayerControlView controlView = playerView.findViewById(R.id.exo_controller);
controlView.hide();
playerView.setControllerAutoShow(false); playerView.setControllerAutoShow(false);
mediaSession.setActive(true); mediaSession.setActive(true);
enterPictureInPictureMode(); enterPictureInPictureMode();

View File

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

View File

@ -15,6 +15,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="bottom" android:layout_gravity="bottom"
android:background="#CC000000" android:background="#CC000000"
android:animateLayoutChanges="true"
android:layoutDirection="ltr" android:layoutDirection="ltr"
android:orientation="vertical" android:orientation="vertical"
tools:targetApi="28"> tools:targetApi="28">
@ -34,13 +35,6 @@
android:id="@id/exo_rew" android:id="@id/exo_rew"
style="@style/ExoMediaButton.Rewind" /> 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 <ImageButton
android:id="@id/exo_play" android:id="@id/exo_play"