Playlist ******** Playlist support is implemented as a plugin that enables sequential playback of multiple media items over a single player: the playlist owns a queue of "PlayerConfiguration" (https://players.castlabs.com/react-native/1.4.2/docs/sdk-api/interfaces/PlayerConfiguration/) items, opens them one after another and advances automatically when an item ends. Setup ===== First, install the "@castlabs/react-native-prestoplay-playlist" package: npm install @castlabs/react-native-prestoplay-playlist Usage ===== Render a "PlaylistProvider" inside a "PlayerProvider". The playlist drives the player of the enclosing provider, and all player hooks keep working alongside the playlist hooks. import {PlayerProvider, PlayerView} from '@castlabs/react-native-prestoplay'; import {PlaylistProvider} from '@castlabs/react-native-prestoplay-playlist'; const items = [ {autoPlay: true, source: {url: '', type: ContentType.Hls}}, {autoPlay: true, source: {url: '', type: ContentType.Hls}}, ]; ; Use the hooks to drive and observe the playlist: import { usePlaylist, useCurrentPlaylistItem, } from '@castlabs/react-native-prestoplay-playlist'; function PlaylistControls() { const playlist = usePlaylist(); const {item, index} = useCurrentPlaylistItem(); return ( <>