media/libraries
christosts 036a28b292 MediaController: stop advancing content position when player is paused
MediaController.getContentPosition() estimates the content position
based on the last position info sent by the player and the elapsed
real-time since the position info was received. After calling
MediaController's play/pause/setPlayWhenReady, the position estimation
logic is still applying, therefore advancing the position until the
underlying player's actual position is received. This can make the
MediaController's content position to be out of sync with player's
actual content position.

With this change, MediaController stops making content position
estimations after any of play/pause/setPlayWhenReady is called and
until a new position info is received from the underlying player.

Tested manually with the the session demo app, pausing/resuming content
from the UI.

PiperOrigin-RevId: 418000800
2022-01-05 12:14:58 +00:00
..
cast Upgrade Cast dependency for Android 12 compatibility 2021-12-07 16:46:40 +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 Add MediaSource.Factory and deprecate MediaSourceFactory 2022-01-05 10:51:41 +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 MediaController: stop advancing content position when player is paused 2022-01-05 12:14:58 +00:00
test_data Rename HLS master playlist to multivariant playlist 2022-01-05 10:41:06 +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 Transformer GL: Document lack of support for non-square pixels. 2022-01-05 10:52:51 +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