mirror of
https://github.com/samsonjs/media.git
synced 2026-03-31 10:25:48 +00:00
Treat playback after stop as a new playback
This implies we should report it as STATE_JOINING_FOREGROUND instead of STATE_BUFFERING. PiperOrigin-RevId: 627406584
This commit is contained in:
parent
73f614b14d
commit
bf9f8a3719
1 changed files with 2 additions and 1 deletions
|
|
@ -455,7 +455,8 @@ public final class MediaMetricsListener
|
|||
return PlaybackStateEvent.STATE_ENDED;
|
||||
} else if (playerPlaybackState == Player.STATE_BUFFERING) {
|
||||
if (currentPlaybackState == PlaybackStateEvent.STATE_NOT_STARTED
|
||||
|| currentPlaybackState == PlaybackStateEvent.STATE_JOINING_FOREGROUND) {
|
||||
|| currentPlaybackState == PlaybackStateEvent.STATE_JOINING_FOREGROUND
|
||||
|| currentPlaybackState == PlaybackStateEvent.STATE_STOPPED) {
|
||||
return PlaybackStateEvent.STATE_JOINING_FOREGROUND;
|
||||
}
|
||||
if (!player.getPlayWhenReady()) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue