这是indexloc提供的服务,不要输入任何密码
Skip to content

Support delayed focus gain when starting playback during a call #1716

@brahmkshatriya

Description

@brahmkshatriya

Version

Media3 main branch

More version details

No response

Devices that reproduce the issue

Pixel 3, Android 14

Devices that do not reproduce the issue

No response

Reproducible in the demo app?

Not tested

Reproduction steps

  1. Start a phone call.
  2. Open the demo app. (Important to do it after the call)
  3. Try playing a media, media won't play.

Expected result

The player.getPlaybackSuppressionReason() gives PLAYBACK_SUPPRESSION_REASON_NONE even though the playback is suppressed due to audio focus loss.

Actual result

The player.getPlaybackSuppressionReason() should give PLAYBACK_SUPPRESSION_REASON_TRANSIENT_AUDIO_FOCUS_LOSS, since the playback is suppressed due to the phone call.

Media

Not applicable

Bug Report

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions