Instance Method

changeToMediaItem

Begins playing the media item in the queue immediately.

Declaration

Promise changeToMediaItem(MusicKit.descriptor descriptor);

Parameters

descriptor

A descriptor can be a MusicKit.MediaItem instance or a string identifier.

Return Value

Returns the current media item position.