Learn how to play a FastPix video in your iOS app using a playback ID.
The FastPix iOS Player SDK uses AVPlayerViewController to stream videos. You provide a playback ID (generated when you upload a video to FastPix), and the SDK handles the rest.
To play a video, create an AVPlayerViewController, attach it to your view hierarchy, and call the prepare method with your playback ID.
The prepare method accepts two parameters:
playbackId (required): A unique identifier for the video asset. Make sure you use the correct playback ID to load the intended video.streamType (optional): Specifies whether the content is "on-demand" or "live". Defaults to "on-demand" if not set.