Learn how to replace the default FastPix player controls with your own custom UI.
The FastPix iOS Player SDK lets you hide the default controls and build a fully custom video player interface. You can add your own play/pause button, seek bar, gesture-based interactions, and custom layouts while still using the FastPix engine for playback, buffering, analytics, and playlists.
Disable the SDK’s built-in player UI:
Place the FastPix player inside your own UIView so you can overlay custom controls on top:
Create a play/pause button and connect it to the player. You can either use togglePlayPause() for automatic switching, or manually call play() and pause().
Observe the player’s timeControlStatus to keep the button icon in sync with the playback state:
Use a tap gesture to toggle the visibility of your custom controls:
Automatically hide controls after a period of inactivity: