For getting a VOD file as a backup source, we will use the following flow:
Step 1: Set Up a Livestream with Backup
First, create a livestream and enable the backup option. [Learn more about backup here].
Step 2: Configure a Pre-recorded Stream as Backup
Next, create a Pre-recorded Stream [Learn more here] and add a custom destination. Set the custom destination to RTMP/SRT (matching the protocol of the primary feed), then copy the details from the Backup streaming information. This completes the backup setup. Ensure the Scheduling option is set as loop mode. Set the Scheduling option to Loop mode to ensure continuous playback if needed. The VOD file should have the same resolution, bitrate and FPS as the primary feed to avoid quality inconsistencies during a switch.
Step 3: Send the Primary Feed
Now, stream your primary feed from the encoder using the Primary Key. To ensure a smooth transition between the primary and backup streams, follow these [best practices].
Step 4: Automatic Failover
Your setup is now complete. If the primary source is disrupted, the VOD file saved in the Pre-recorded Stream will automatically play as a backup.
Setting Up a Constant Pull URL for the Backup Stream
To obtain a constant Pull URL for your backup stream:
Create a New Stream β This will serve as the destination for the backup feed.
Push the Backup Stream β Configure the backup stream to push to the new stream using a constant URL. [Learn how to set up a constant URL here].
Retrieve the Constant Pull URL β Once the new stream is set up, you can grab its constant Pull URL for reliable access.