mirror of
https://github.com/samsonjs/media.git
synced 2026-04-17 13:15:47 +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
This commit is contained in:
parent
cce79a7040
commit
a5b09b8ccc
1 changed files with 0 additions and 4 deletions
|
|
@ -57,7 +57,6 @@ import androidx.annotation.Nullable;
|
|||
import androidx.core.content.res.ResourcesCompat;
|
||||
import androidx.media3.common.C;
|
||||
import androidx.media3.common.Format;
|
||||
import androidx.media3.common.ForwardingPlayer;
|
||||
import androidx.media3.common.MediaLibraryInfo;
|
||||
import androidx.media3.common.Player;
|
||||
import androidx.media3.common.Player.Events;
|
||||
|
|
@ -633,9 +632,6 @@ public class PlayerControlView extends FrameLayout {
|
|||
if (player != null) {
|
||||
player.addListener(componentListener);
|
||||
}
|
||||
if (player instanceof ForwardingPlayer) {
|
||||
player = ((ForwardingPlayer) player).getWrappedPlayer();
|
||||
}
|
||||
updateAll();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue