Skip to main content

PlaylistControls

Minimal playlist-navigation surface registered on a Player by the playlist plugin (@castlabs/react-native-prestoplay-playlist) while a playlist drives that player.

It lets other plugins — e.g. the now-playing media controls — navigate playlist items without depending on the playlist package.

Methods​

hasNext()​

hasNext(): boolean

Whether there is an item after the current one.

Returns​

boolean


hasPrevious()​

hasPrevious(): boolean

Whether there is an item before the current one.

Returns​

boolean


next()​

next(): Promise<void>

Goes to the next playlist item.

Returns​

Promise<void>


previous()​

previous(): Promise<void>

Goes to the previous playlist item.

Returns​

Promise<void>