TrackSelectionParameters.AudioOffloadPreferences


@UnstableApi
class TrackSelectionParameters.AudioOffloadPreferences


Preferences and constraints for enabling audio offload.

Summary

Nested types

@Documented
@Retention(value = SOURCE)
@Target(value = TYPE_USE)
@IntDef(value = )
annotation TrackSelectionParameters.AudioOffloadPreferences.AudioOffloadMode

The preference level for enabling audio offload on the audio sink.

A builder for AudioOffloadPreferences.

Constants

const Int

The track selector will disable audio offload on the audio sink.

const Int

The track selector will enable audio offload if the selected tracks and renderer capabilities are compatible.

const Int

The track selector will only select tracks that with the renderer capabilities provide an audio offload compatible playback scenario.

const TrackSelectionParameters.AudioOffloadPreferences!

Returns an instance configured with default values.

Public functions

TrackSelectionParameters.AudioOffloadPreferences.Builder!

Creates a new AudioOffloadPreferences.Builder, copying the initial values from this instance.

Boolean
equals(obj: Any?)
java-static TrackSelectionParameters.AudioOffloadPreferences!
fromBundle(bundle: Bundle!)

Construct an instance from a Bundle produced by toBundle.

Int
Bundle!

Public properties

Int

The preferred offload mode setting for audio playback.

Boolean

A constraint on enabling offload.

Boolean

A constraint on enabling offload.

Constants

AUDIO_OFFLOAD_MODE_DISABLED

const val AUDIO_OFFLOAD_MODE_DISABLED = 0: Int

The track selector will disable audio offload on the audio sink. Track selection will not take into consideration whether or not a track is offload compatible.

AUDIO_OFFLOAD_MODE_ENABLED

const val AUDIO_OFFLOAD_MODE_ENABLED = 1: Int

The track selector will enable audio offload if the selected tracks and renderer capabilities are compatible.

AUDIO_OFFLOAD_MODE_REQUIRED

const val AUDIO_OFFLOAD_MODE_REQUIRED = 2: Int

The track selector will only select tracks that with the renderer capabilities provide an audio offload compatible playback scenario. If it is impossible to create an offload-compatible track selection, then no tracks will be selected.

DEFAULT

const val DEFAULTTrackSelectionParameters.AudioOffloadPreferences!

Returns an instance configured with default values.

Public functions

buildUpon

fun buildUpon(): TrackSelectionParameters.AudioOffloadPreferences.Builder!

Creates a new AudioOffloadPreferences.Builder, copying the initial values from this instance.

equals

fun equals(obj: Any?): Boolean

fromBundle

java-static fun fromBundle(bundle: Bundle!): TrackSelectionParameters.AudioOffloadPreferences!

Construct an instance from a Bundle produced by toBundle.

hashCode

fun hashCode(): Int

toBundle

fun toBundle(): Bundle!

Public properties

audioOffloadMode

@TrackSelectionParameters.AudioOffloadPreferences.AudioOffloadMode
val audioOffloadModeInt

The preferred offload mode setting for audio playback.

isGaplessSupportRequired

val isGaplessSupportRequiredBoolean

A constraint on enabling offload. If true, then audio offload will be enabled only if the device supports gapless transitions during offload or the selected audio is not gapless.

isSpeedChangeSupportRequired

val isSpeedChangeSupportRequiredBoolean

A constraint on enabling offload. If true, then audio offload will be enabled only if the device supports changing playback speed during offload.