media/libraries
jbibik 136f0876d5 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

PiperOrigin-RevId: 554966361
(cherry picked from commit dedccc596e)
2023-08-08 22:51:53 +00:00
..
cast Implement Player.replaceMediaItem(s) 2023-05-26 13:25:10 +00:00
common Use ceiling divide logic in AudioTrackPositionTracker.hasPendingData 2023-08-07 15:17:31 +00:00
container Fix parsing of H.265 sequence parameter sets 2023-07-28 16:00:13 +01:00
database Fix javadoc links in media README files 2023-03-30 17:26:40 +00:00
datasource Fix missing equals sign in inline-comment parameter names 2023-06-22 16:09:57 +00:00
datasource_cronet Fix missing equals sign in inline-comment parameter names 2023-06-22 16:09:57 +00:00
datasource_okhttp Fix javadoc links in media README files 2023-03-30 17:26:40 +00:00
datasource_rtmp Fix javadoc links in media README files 2023-03-30 17:26:40 +00:00
decoder Update dependencies to latest versions 2023-04-26 15:49:57 +01:00
decoder_av1 Remove Javadoc TODO from README of decoder extensions 2023-04-05 15:48:58 +01:00
decoder_ffmpeg Remove FfmpegVideoRenderer from 1.1.0 release 2023-05-18 18:04:45 +00:00
decoder_flac Update dependencies to latest versions 2023-04-26 15:49:57 +01:00
decoder_opus Update dependencies to latest versions 2023-04-26 15:49:57 +01:00
decoder_vp9 Update dependencies to latest versions 2023-04-26 15:49:57 +01:00
effect Rollback of a66f08ba97 2023-06-12 09:15:55 +00:00
exoplayer Add field object type (ot) 2023-08-08 16:09:07 +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-08 16:09:07 +00:00
exoplayer_ima Fix splitting ad playback state for partial ad group when joining 2023-06-12 09:15:54 +00:00
exoplayer_rtsp Use base Uri from the RTSP DESCRIBE response header for relative paths 2023-05-26 13:25:10 +00:00
exoplayer_smoothstreaming Add field object type (ot) 2023-08-08 16:09:07 +00:00
exoplayer_workmanager Remove deprecated WorkManagerScheduler constructor 2023-05-18 16:07:51 +00:00
extractor Add comment about out-of-order timestamps in AtomParsers.parseStbl 2023-07-24 18:05:04 +01:00
muxer Enable nullness checker for Muxer module androidTest library 2023-06-12 09:15:53 +00:00
session Fix PlayerWrapper's creation of VolumeProviderCompat 2023-08-08 22:51:53 +00:00
test_data Merge pull request #528 from zgzong:patch-2 2023-08-10 12:09:43 +00:00
test_exoplayer_playback Update dependencies to latest versions 2023-04-26 15:49:57 +01:00
test_session_common Add custom layout to the state of the MediaController 2023-07-11 20:59:01 +01:00
test_session_current Only use result.sendError where supported by legacy media library 2023-07-26 16:14:39 +01:00
test_utils Add nanoTime method to Clock to support overriding System.nanoTime() 2023-07-03 16:29:13 +00:00
test_utils_robolectric Move MdtaMetadataEntry class into container module 2023-05-26 13:25:07 +00:00
transformer Factor out video decoding and fix two minor issues 2023-06-12 11:05:08 +00:00
ui Check command availability before getting tracks in PlayerView 2023-08-07 13:01:49 +00:00
ui_leanback Use Util method for common UI play/pause button logic. 2023-04-26 15:52:50 +01:00