Manage playlists
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.
Create a playlist
Define a list of FastPixPlaylistItem objects. Each item includes a playback ID, title, description, thumbnail, and duration. Tokens are optional.
Add the playlist to the player
Enable auto-play
Automatically play the next item in the playlist when the current one finishes:
Hide default controls
If you want to use a custom UI with your playlist, hide the SDK’s built-in controls:
Observe playlist state changes
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.
Navigate the playlist
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.