Migrate ExoPlayer to StyledPlayerView

This commit is contained in:
Niels van Velzen 2023-05-12 19:27:19 +02:00 committed by Niels van Velzen
parent 00b24be8cc
commit 2d4adbf6a2
2 changed files with 3 additions and 3 deletions

View File

@ -36,7 +36,7 @@ import com.google.android.exoplayer2.source.TrackGroup;
import com.google.android.exoplayer2.trackselection.TrackSelectionOverride;
import com.google.android.exoplayer2.trackselection.TrackSelectionParameters;
import com.google.android.exoplayer2.ui.AspectRatioFrameLayout;
import com.google.android.exoplayer2.ui.PlayerView;
import com.google.android.exoplayer2.ui.StyledPlayerView;
import com.google.common.collect.ImmutableSet;
import org.jellyfin.androidtv.R;
@ -75,7 +75,7 @@ public class VideoManager implements IVLCVout.OnNewVideoLayoutListener {
private SurfaceView mSubtitlesSurface;
private FrameLayout mSurfaceFrame;
private ExoPlayer mExoPlayer;
private PlayerView mExoPlayerView;
private StyledPlayerView mExoPlayerView;
private LibVLC mLibVLC;
private MediaPlayer mVlcPlayer;
private Media mCurrentMedia;

View File

@ -30,7 +30,7 @@
</FrameLayout>
<com.google.android.exoplayer2.ui.PlayerView
<com.google.android.exoplayer2.ui.StyledPlayerView
android:id="@+id/exoPlayerView"
android:layout_width="match_parent"
android:layout_height="match_parent"