commit | e7c78df20888f027391e5da16b6368d2870afa67 | [log] [tgz] |
---|---|---|
author | Jan Sebechlebsky <[email protected]> | Wed Aug 30 16:34:35 2023 +0200 |
committer | Ján Sebechlebský <[email protected]> | Fri Sep 08 08:21:53 2023 +0000 |
tree | 123a36154cad1c60f4cacfb7a45161e432e3ef8c | |
parent | 83adafdcd5181e981b0fb114358a76fa42bc04d4 [diff] |
Fix MediaPlayer device-aware session id configuration. Factory .create methods shouldn't implicitly generate new audio session id, but pass AUDIO_SESSION_ALLOCATE instead. This will case the MediaPlayer constructor to generate audio session id when needed, but won't prevent it from using a device-specific audio session id if there's one asociated with the context. Bug: 298002296 Test: atest MediaPlayerUnitTest Change-Id: I4947c09c9ab3ba905c6016466b45fc107ee7e2e0