Learn how to create and navigate playlists in the FastPix iOS Player.
The FastPix iOS Player supports playlists, letting you manage and navigate multiple videos within a single playback session.
Define a list of FastPixPlaylistItem objects. Each item includes a playback ID, title, description, thumbnail, and duration. Tokens are optional.
Automatically play the next item in the playlist when the current one finishes:
If you want to use a custom UI with your playlist, hide the SDK’s built-in controls:
Use NotificationCenter to observe playlist state updates (for example, when the current item changes). This lets you update your UI—titles, buttons, progress indicators—whenever the playlist state changes.
The SDK provides built-in methods to move between playlist items. You can connect these to custom UI buttons like Next, Previous, or Jump to Episode.
The index is zero-based—jumpTo(index: 0) plays the first item.
Combine these navigation methods with the playlist state observer to dynamically update the UI as the current item changes.