Record and archive live streams
Learn how to record your live streams, retrieve the recorded sessions, and replay them for on-demand viewing or future broadcasts.
Learn how to record your live streams, retrieve the recorded sessions, and replay them for on-demand viewing or future broadcasts.
FastPix automatically records every live stream. After the live stream ends, it is stored as an on-demand media asset, allowing users to replay it anytime. This functionality ensures that all live content is preserved and can be accessed even after the stream has concluded.
mediaId.mediaId is required to fetch recording details and construct the playback URL.
After a live stream is completed, follow these steps to access and replay the recording:
There are two ways to obtain the mediaId of the recorded live stream:
Through webhook event:
Through live stream API:
After you have the mediaId, use the Get media by ID endpoint to retrieve playback details.
Response:
This response includes the playbackId, which is necessary to construct the stream URL.
Using the playbackId, generate the playback URL to stream the recorded media:
You can use this URL (with .m3u8 extension) in other video players as per your use case.
Refer to the player guide for more details on integrating with the FastPix video player. You can further customize your player interface and video playback experience as per your requirements.
To directly stream your video on a browser, you can also use the playback stream URL which is sharable. Simply preview your video by putting the playbackId on the stream URL.