다음을 통해 공유


AudioProfile.EncapsulationType Property

Definition

The encapsulation type indicates what encapsulation type is required when the framework is using this format when playing to a device exposing this audio profile.

public virtual int EncapsulationType { [Android.Runtime.Register("getEncapsulationType", "()I", "GetGetEncapsulationTypeHandler", ApiSince=31)] get; }
[<get: Android.Runtime.Register("getEncapsulationType", "()I", "GetGetEncapsulationTypeHandler", ApiSince=31)>]
member this.EncapsulationType : int

Property Value

an integer representing the encapsulation type

Attributes

Remarks

The encapsulation type indicates what encapsulation type is required when the framework is using this format when playing to a device exposing this audio profile. When encapsulation is required, only playback with android.media.AudioTrack API is supported. But playback with android.media.MediaPlayer is not. When an encapsulation type is required, the AudioFormat encoding selected when creating the AudioTrack must match the encapsulation type, e.g AudioFormat.ENCODING_IEC61937 for AUDIO_ENCAPSULATION_TYPE_IEC61937.

Java documentation for android.media.AudioProfile.getEncapsulationType().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to