mirror of
https://github.com/samsonjs/media.git
synced 2026-04-02 10:45:51 +00:00
Remove ForwardingPlayer special case from PlayerControlView.setPlayer
This was originally added in4fd7d777b6, but it hasn't done anything since98ee159df1(when the instanceof ExoPlayer check was removed). PiperOrigin-RevId: 482161662 (cherry picked from commit7d5f1a24be)
This commit is contained in:
parent
e54127cf52
commit
f56d714dd3
1 changed files with 0 additions and 4 deletions
|
|
@ -60,7 +60,6 @@ import androidx.recyclerview.widget.RecyclerView;
|
|||
import com.google.android.exoplayer2.C;
|
||||
import com.google.android.exoplayer2.ExoPlayerLibraryInfo;
|
||||
import com.google.android.exoplayer2.Format;
|
||||
import com.google.android.exoplayer2.ForwardingPlayer;
|
||||
import com.google.android.exoplayer2.Player;
|
||||
import com.google.android.exoplayer2.Player.Events;
|
||||
import com.google.android.exoplayer2.Player.State;
|
||||
|
|
@ -639,9 +638,6 @@ public class StyledPlayerControlView extends FrameLayout {
|
|||
if (player != null) {
|
||||
player.addListener(componentListener);
|
||||
}
|
||||
if (player instanceof ForwardingPlayer) {
|
||||
player = ((ForwardingPlayer) player).getWrappedPlayer();
|
||||
}
|
||||
updateAll();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue