media/libraries
jbibik dedccc596e Fix PlayerWrapper's creation of VolumeProviderCompat
When hardware buttons are used to control the volume of the remote device, the call propagates to `MediaSessionCompat.setPlaybackToRemote(volumeProviderCompat)`. However, `volumeProviderCompat` was created incorrectly when the new device volume commands were present (COMMAND_SET_DEVICE_VOLUME_WITH_FLAGS and COMMAND_ADJUST_DEVICE_VOLUME_WITH_FLAGS), i.e. with volumeControlType = `VOLUME_CONTROL_FIXED`. This resulted in `VolumeProviderCompat` which doesn't call `onSetVolumeTo` or `onAdjustVolume` and hence doesn't propagate the calls to the `Player`. Instead, it only worked with the deprecated commands which ensured the volumeControlType was `VOLUME_CONTROL_ABSOLUTE`.

This bug was introduced in c71e4bf1ff (1.0 media 3 release) when `PlayerWrapper`'s call to `createVolumeProviderCompat` was mostly rewritten to handle the new commands, but the two if-statements were not amended. Note: this change fixes the bug only for Android 11 and below. For 12 and above, there is a tracking bug for the regression that was introduced: https://issuetracker.google.com/issues/201546605

http://Issue: androidx/media#554

#minor-release

PiperOrigin-RevId: 554966361
2023-08-10 12:12:09 +00:00
..
cast Do not trim audio samples by changing their timestamp 2023-06-29 22:50:04 +00:00
common Preserve the byte order when using read-only ByteBuffers. 2023-08-10 12:08:19 +00:00
container Fix parsing of H.265 sequence parameter sets 2023-08-01 14:22:29 +01:00
database Do not trim audio samples by changing their timestamp 2023-06-29 22:50:04 +00:00
datasource Remove unnecessary final on DefaultHttpDataSource.Factory method 2023-06-29 23:09:14 +00:00
datasource_cronet Do not trim audio samples by changing their timestamp 2023-06-29 22:50:04 +00:00
datasource_okhttp Remove exoplayer2-only javadoc machinery from media3 2023-06-05 09:47:58 +00:00
datasource_rtmp Remove exoplayer2-only javadoc machinery from media3 2023-06-05 09:47:58 +00:00
decoder Do not trim audio samples by changing their timestamp 2023-06-29 22:50:04 +00:00
decoder_av1 Do not trim audio samples by changing their timestamp 2023-06-29 22:50:04 +00:00
decoder_ffmpeg Do not trim audio samples by changing their timestamp 2023-06-29 22:50:04 +00:00
decoder_flac Add more data to e2etest dumps 2023-07-13 15:33:33 +01:00
decoder_midi Do not trim audio samples by changing their timestamp 2023-06-29 22:50:04 +00:00
decoder_opus Do not trim audio samples by changing their timestamp 2023-06-29 22:50:04 +00:00
decoder_vp9 Do not trim audio samples by changing their timestamp 2023-06-29 22:50:04 +00:00
effect Improve DebugTraceUtil logging 2023-08-10 12:10:50 +00:00
exoplayer Preserve the byte order when using read-only ByteBuffers. 2023-08-10 12:08:19 +00:00
exoplayer_dash Merge pull request #528 from zgzong:patch-2 2023-08-10 12:09:43 +00:00
exoplayer_hls Add field object type (ot) 2023-08-10 12:06:13 +00:00
exoplayer_ima Make MediaItems updateable 2023-07-13 15:26:30 +01:00
exoplayer_rtsp Remove stale TODO 2023-08-01 14:14:34 +01:00
exoplayer_smoothstreaming Add field object type (ot) 2023-08-10 12:06:13 +00:00
exoplayer_workmanager Remove exoplayer2-only javadoc machinery from media3 2023-06-05 09:47:58 +00:00
extractor Preserve the byte order when using read-only ByteBuffers. 2023-08-10 12:08:19 +00:00
muxer Only set hadKeyframe flag to true if we end up muxing the frame. 2023-08-10 12:00:51 +00:00
session Fix PlayerWrapper's creation of VolumeProviderCompat 2023-08-10 12:12:09 +00:00
test_data Merge pull request #528 from zgzong:patch-2 2023-08-10 12:09:43 +00:00
test_exoplayer_playback Add android.namespace to all build.gradle files 2023-05-19 17:19:15 +01:00
test_session_common Use MediaUtils.intersect in MediaControllerImplBase 2023-08-01 13:54:11 +01:00
test_session_current Only use result.sendError where supported by legacy media library 2023-08-01 14:11:08 +01:00
test_utils Use lower resolution bitmap for tests 2023-08-10 11:58:25 +00:00
test_utils_robolectric Set signal on renderer once it's allowed to render start of stream 2023-07-13 15:59:00 +01:00
transformer Improve DebugTraceUtil logging 2023-08-10 12:10:50 +00:00
ui Check command availability before getting tracks in PlayerView 2023-08-07 14:03:27 +00:00
ui_leanback Remove exoplayer2-only javadoc machinery from media3 2023-06-05 09:47:58 +00:00