Udostępnij za pośrednictwem


TvInputService.Session.NotifyAudioPresentationSelected(Int32, Int32) Method

Definition

Sends the presentation and program IDs of the selected audio presentation.

[Android.Runtime.Register("notifyAudioPresentationSelected", "(II)V", "GetNotifyAudioPresentationSelected_IIHandler", ApiSince=34)]
public virtual void NotifyAudioPresentationSelected (int presentationId, int programId);
[<Android.Runtime.Register("notifyAudioPresentationSelected", "(II)V", "GetNotifyAudioPresentationSelected_IIHandler", ApiSince=34)>]
abstract member NotifyAudioPresentationSelected : int * int -> unit
override this.NotifyAudioPresentationSelected : int * int -> unit

Parameters

presentationId
Int32

The ID of the selected audio presentation for the current track.

programId
Int32

The ID of the program providing the selected audio presentation.

Attributes

Remarks

Sends the presentation and program IDs of the selected audio presentation. This is used to inform the application that a specific audio presentation is selected. The TV input service must call this method as soon as an audio presentation is selected either by default or in response to a call to #onSelectTrack. The selected audio presentation ID for a currently selected audio track is maintained in the framework until the next call to this method even after the entire audio presentation list for the track is updated (but is reset when the session is tuned to a new channel), so care must be taken not to result in an obsolete track audio presentation ID.

Java documentation for android.media.tv.TvInputService.Session.notifyAudioPresentationSelected(int, int).

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