Skip to content

Commit

Permalink
PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
daytime-em committed Jun 23, 2023
1 parent 4e9bcef commit 8c7aa06
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ private class MuxAnalyticsListener(player: ExoPlayer, val collector: MuxStateCol
private val player by weak(player)

override fun onPlaybackStateChanged(eventTime: AnalyticsListener.EventTime, state: Int) {
// We rely on the player's playWhenReady because the order of this callback and its callback
// is not well-defined
// query playWhenReady for consistency. The order of execution between this callback and
// onPlayWhenReadyChanged is not well-defined
player?.let { collector.handleExoPlaybackState(state, it.playWhenReady) }
}

Expand Down

0 comments on commit 8c7aa06

Please sign in to comment.