mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2026-10-04 06:41:48 +00:00
updated: ExoPlayer to 2.17.1.
added: MediaItemTag for ManagedMediaSources. added: silent track for FailedMediaSource. added: keyframe fast forward at initial playback buffer. added: error notification on silently skipped streams.
This commit is contained in:
@@ -3,7 +3,7 @@ package org.schabi.newpipe.player.playback;
|
||||
import android.content.Context;
|
||||
import android.view.SurfaceHolder;
|
||||
|
||||
import com.google.android.exoplayer2.SimpleExoPlayer;
|
||||
import com.google.android.exoplayer2.Player;
|
||||
import com.google.android.exoplayer2.video.DummySurface;
|
||||
|
||||
/**
|
||||
@@ -25,10 +25,10 @@ import com.google.android.exoplayer2.video.DummySurface;
|
||||
public final class SurfaceHolderCallback implements SurfaceHolder.Callback {
|
||||
|
||||
private final Context context;
|
||||
private final SimpleExoPlayer player;
|
||||
private final Player player;
|
||||
private DummySurface dummySurface;
|
||||
|
||||
public SurfaceHolderCallback(final Context context, final SimpleExoPlayer player) {
|
||||
public SurfaceHolderCallback(final Context context, final Player player) {
|
||||
this.context = context;
|
||||
this.player = player;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user