mirror of
https://github.com/samsonjs/media.git
synced 2026-04-01 10:35:48 +00:00
Add missing player null check
PiperOrigin-RevId: 272654378
This commit is contained in:
parent
722722d8df
commit
495b418fb1
1 changed files with 1 additions and 1 deletions
|
|
@ -943,7 +943,7 @@ public class PlayerControlView extends FrameLayout {
|
|||
// Cancel any pending updates and schedule a new one if necessary.
|
||||
removeCallbacks(updateProgressAction);
|
||||
int playbackState = player == null ? Player.STATE_IDLE : player.getPlaybackState();
|
||||
if (player.isPlaying()) {
|
||||
if (player != null && player.isPlaying()) {
|
||||
long mediaTimeDelayMs =
|
||||
timeBar != null ? timeBar.getPreferredUpdateDelay() : MAX_UPDATE_INTERVAL_MS;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue