Share via


MediaController.TransportControls.PlayFromMediaId(String, Bundle) Method

Definition

Request that the player start playback for a specific media id.

[Android.Runtime.Register("playFromMediaId", "(Ljava/lang/String;Landroid/os/Bundle;)V", "")]
public void PlayFromMediaId (string? mediaId, Android.OS.Bundle? extras);
[<Android.Runtime.Register("playFromMediaId", "(Ljava/lang/String;Landroid/os/Bundle;)V", "")>]
member this.PlayFromMediaId : string * Android.OS.Bundle -> unit

Parameters

mediaId
String

The id of the requested media.

extras
Bundle

Optional extras that can include extra information about the media item to be played.

Attributes

Remarks

Request that the player start playback for a specific media id.

Java documentation for android.media.session.MediaController.TransportControls.playFromMediaId(java.lang.String, android.os.Bundle).

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