Back to Exoplayer

Player.PlaybackSuppressionReason (ExoPlayer library)

docs/doc/reference/com/google/android/exoplayer2/Player.PlaybackSuppressionReason.html

latest2.0 KB
Original Source

Package com.google.android.exoplayer2

Annotation Type Player.PlaybackSuppressionReason


[@Documented](https://developer.android.com/reference/java/lang/annotation/Documented.html "class or interface in java.lang.annotation")[@Retention](https://developer.android.com/reference/java/lang/annotation/Retention.html "class or interface in java.lang.annotation")([SOURCE](https://developer.android.com/reference/java/lang/annotation/RetentionPolicy.html?is-external=true#SOURCE "class or interface in java.lang.annotation"))[@Target](https://developer.android.com/reference/java/lang/annotation/Target.html "class or interface in java.lang.annotation")({[FIELD](https://developer.android.com/reference/java/lang/annotation/ElementType.html?is-external=true#FIELD "class or interface in java.lang.annotation"),[METHOD](https://developer.android.com/reference/java/lang/annotation/ElementType.html?is-external=true#METHOD "class or interface in java.lang.annotation"),[PARAMETER](https://developer.android.com/reference/java/lang/annotation/ElementType.html?is-external=true#PARAMETER "class or interface in java.lang.annotation"),[LOCAL\_VARIABLE](https://developer.android.com/reference/java/lang/annotation/ElementType.html?is-external=true#LOCAL_VARIABLE "class or interface in java.lang.annotation"),[TYPE\_USE](https://developer.android.com/reference/java/lang/annotation/ElementType.html?is-external=true#TYPE_USE "class or interface in java.lang.annotation")})
public static @interfacePlayer.PlaybackSuppressionReason

Reason why playback is suppressed even though Player.getPlayWhenReady() is true. One of Player.PLAYBACK_SUPPRESSION_REASON_NONE, Player.PLAYBACK_SUPPRESSION_REASON_TRANSIENT_AUDIO_FOCUS_LOSS or Player.PLAYBACK_SUPPRESSION_REASON_UNSUITABLE_AUDIO_ROUTE.