media/libraries
bachinger 967acf3049 Make sure CastPlayer calls onIsPlaying if required
Before this change we checked whether the playback state and playWhenReady have changed when the state from the cast device arrived. If we detected such a change we called the listener callback `onIsPlayingChanged`. However, in the case when `setPlayWhenReady(boolean)` is called on 'CastPlayer', we mask the change in `playWhenReady`, then send the play/pause request to the cast device and when the state from the cast device arrives we never detect a change because we have already masked `playWhenReady`.

This change now moves the check for `isPlaying` to the same place where the state and playWhenReady is updated, so we call the `onIsPlayingChanged` callback in either case, when masking or when a changed state from the server arrives.

Issue: google/ExoPlayer#9792
PiperOrigin-RevId: 418483509
2022-01-05 12:14:58 +00:00
..
cast Make sure CastPlayer calls onIsPlaying if required 2022-01-05 12:14:58 +00:00
common Support simple ad serving with the stable API 2022-01-05 10:49:42 +00:00
database Update to androidx.media3 2021-10-27 09:12:46 +01:00
datasource Change DefaultHttpDataSourceTest to an instrumentation test 2022-01-05 10:00:46 +00:00
datasource_cronet Update dependency versions 2021-11-19 14:42:25 +00:00
datasource_okhttp Update to androidx.media3 2021-10-27 09:12:46 +01:00
datasource_rtmp Make package in test manifest consistent 2021-11-08 15:18:26 +00:00
decoder Make package in test manifest consistent 2021-11-08 15:18:26 +00:00
decoder_av1 Rename PlayerView to LegacyPlayerView in media3 2022-01-05 10:38:50 +00:00
decoder_ffmpeg Add a builder to DefaultAudioSink 2021-12-07 17:37:45 +00:00
decoder_flac Add a builder to DefaultAudioSink 2021-12-07 17:37:45 +00:00
decoder_opus Make package in test manifest consistent 2021-11-08 15:18:26 +00:00
decoder_vp9 Rename PlayerView to LegacyPlayerView in media3 2022-01-05 10:38:50 +00:00
exoplayer Pre-allocate availableAllocations to prevent a re-size in release 2022-01-05 12:14:58 +00:00
exoplayer_dash Fix 1 ErrorProneStyle finding: 2022-01-05 12:14:43 +00:00
exoplayer_hls Add MediaSource.Factory and deprecate MediaSourceFactory 2022-01-05 10:51:41 +00:00
exoplayer_ima Add MediaSource.Factory and deprecate MediaSourceFactory 2022-01-05 10:51:41 +00:00
exoplayer_rtsp Add MediaSource.Factory and deprecate MediaSourceFactory 2022-01-05 10:51:41 +00:00
exoplayer_smoothstreaming Add MediaSource.Factory and deprecate MediaSourceFactory 2022-01-05 10:51:41 +00:00
exoplayer_workmanager Update to androidx.media3 2021-10-27 09:12:46 +01:00
extractor Merge pull request #9709 from Marksss:release-v2 2021-12-10 11:19:44 +00:00
session Take MediaSession for building notification 2022-01-05 12:14:58 +00:00
test_data Throw when inferred sample MIME type is not supported by the muxer. 2022-01-05 12:14:58 +00:00
test_exoplayer_playback Migrate usages of deprecated MediaSourceFactory methods 2022-01-05 10:40:02 +00:00
test_session_common Migrate media3.session references from Window to MediaItem 2021-11-08 15:13:41 +00:00
test_session_current Shorten log tags to 23 char limit 2021-12-07 17:37:31 +00:00
test_utils Add MediaSource.Factory and deprecate MediaSourceFactory 2022-01-05 10:51:41 +00:00
test_utils_robolectric Migrate usages of Window-based Player methods 2021-11-09 10:07:30 +00:00
transformer Throw when inferred sample MIME type is not supported by the muxer. 2022-01-05 12:14:58 +00:00
ui Rename PlayerView to LegacyPlayerView in media3 2022-01-05 10:38:50 +00:00
ui_leanback Fixes for some minor misc issues 2021-11-19 14:44:25 +00:00