mirror of
https://github.com/samsonjs/media.git
synced 2026-03-26 09:35:47 +00:00
Fix bug where PlayerView distorts video when video size is unknown
PiperOrigin-RevId: 541640959
(cherry picked from commit 8d8c514d12)
This commit is contained in:
parent
3631e1c6f3
commit
e53796fc25
1 changed files with 2 additions and 1 deletions
|
|
@ -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…
Reference in a new issue