Stay organized with collections
Save and categorize content based on your preferences.
@Documented
@Retention(value = RetentionPolicy.SOURCE)
@Target(value = )
@IntDef(value = )
public annotation Player.PlaybackSuppressionReason
Reason why playback is suppressed even though getPlayWhenReady
is true
.
One of:
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-07-17 UTC.
[null,null,["Last updated 2025-07-17 UTC."],[],[],null,["# Player.PlaybackSuppressionReason\n================================\n\nArtifact: [androidx.media3:media3-common](/jetpack/androidx/releases/media3) \n[View Source](https://cs.android.com/search?q=file:androidx/media3/common/Player.java+class:androidx.media3.common.Player.PlaybackSuppressionReason)\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/androidx/media3/common/Player.PlaybackSuppressionReason \"View this page in Kotlin\") \\|Java\n\n\n```\n@Documented\n@Retention(value = RetentionPolicy.SOURCE)\n@Target(value = )\n@IntDef(value = )\npublic annotation Player.PlaybackSuppressionReason\n```\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nReason why playback is suppressed even though [getPlayWhenReady](/reference/androidx/media3/common/Player#getPlayWhenReady()) is `true`.\n\nOne of:\n\n- [PLAYBACK_SUPPRESSION_REASON_NONE](/reference/androidx/media3/common/Player#PLAYBACK_SUPPRESSION_REASON_NONE())\n- [PLAYBACK_SUPPRESSION_REASON_TRANSIENT_AUDIO_FOCUS_LOSS](/reference/androidx/media3/common/Player#PLAYBACK_SUPPRESSION_REASON_TRANSIENT_AUDIO_FOCUS_LOSS())\n- [PLAYBACK_SUPPRESSION_REASON_UNSUITABLE_AUDIO_ROUTE](/reference/androidx/media3/common/Player#PLAYBACK_SUPPRESSION_REASON_UNSUITABLE_AUDIO_ROUTE())\n- [PLAYBACK_SUPPRESSION_REASON_UNSUITABLE_AUDIO_OUTPUT](/reference/androidx/media3/common/Player#PLAYBACK_SUPPRESSION_REASON_UNSUITABLE_AUDIO_OUTPUT())\n- [PLAYBACK_SUPPRESSION_REASON_SCRUBBING](/reference/androidx/media3/common/Player#PLAYBACK_SUPPRESSION_REASON_SCRUBBING())"]]