Fix bug where PlayerView distorts video when video size is unknown
PiperOrigin-RevId: 541640959
This commit is contained in:
parent
949e9cbd96
commit
8d8c514d12
@ -1603,7 +1603,8 @@ public class PlayerView extends FrameLayout implements AdViewProvider {
|
||||
@Override
|
||||
public void onVideoSizeChanged(VideoSize videoSize) {
|
||||
if (videoSize.equals(VideoSize.UNKNOWN)
|
||||
&& (player == null || player.getPlaybackState() == Player.STATE_IDLE)) {
|
||||
|| player == null
|
||||
|| player.getPlaybackState() == Player.STATE_IDLE) {
|
||||
return;
|
||||
}
|
||||
updateAspectRatio();
|
||||
|
Loading…
x
Reference in New Issue
Block a user