mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +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 commita5b09b8ccc)
This commit is contained in:
parent
d8b6c2971b
commit
950ea910db
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.core.content.res.ResourcesCompat;
|
||||||
import androidx.media3.common.C;
|
import androidx.media3.common.C;
|
||||||
import androidx.media3.common.Format;
|
import androidx.media3.common.Format;
|
||||||
import androidx.media3.common.ForwardingPlayer;
|
|
||||||
import androidx.media3.common.MediaLibraryInfo;
|
import androidx.media3.common.MediaLibraryInfo;
|
||||||
import androidx.media3.common.Player;
|
import androidx.media3.common.Player;
|
||||||
import androidx.media3.common.Player.Events;
|
import androidx.media3.common.Player.Events;
|
||||||
|
|
@ -633,9 +632,6 @@ public class PlayerControlView extends FrameLayout {
|
||||||
if (player != null) {
|
if (player != null) {
|
||||||
player.addListener(componentListener);
|
player.addListener(componentListener);
|
||||||
}
|
}
|
||||||
if (player instanceof ForwardingPlayer) {
|
|
||||||
player = ((ForwardingPlayer) player).getWrappedPlayer();
|
|
||||||
}
|
|
||||||
updateAll();
|
updateAll();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue