Stream recordings of live streams
FastPix lets you to automatically record your live streams. Recordings in case of live streaming can be classified in two ways.
- DVR mode to playback the live stream once it is over.
- Non DVR mode with only one minute trace back option during on-going stream.
DVR mode for live stream historical playback
As soon as your live stream begins, it also gets recorded in the background to get converted into a media for future use or playback. You can use the media playbackId
to watch the recorded stream or even share the playback URL with others.
When a live stream is over, your viewers can replay earlier content when DVR mode is enabled. Simply by dragging back whenever they want on the player.
DVR mode is usually preferred if your live streams are of short time spans. In case your stream extends beyond few hours, we would recommend otherwise and not to use the DVR mode.
There are two ways to access the media generated from a live stream recording:
- Via webhook event
- When the recording is generated, a webhook event is triggered.
- The event payload contains the mediaId of the recorded media.
- Via live stream API
- You can retrieve the live stream details using the Get stream by ID endpoint.
- Once the recording is
ready
, the response will include themediaId
.
Accessing the Stream URL
- After obtaining the
mediaId
, you can use it to fetch the media details. - The media details will provide the stream URL and playback ID.
- Construct the stream URL using this information, and you will be able to watch the recorded live stream as media.
Non-DVR mode in live streaming
In Non-DVR mode your viewers cannot rewind or playback past segments while the stream is still ongoing. Instead, they can only trace back the last one minute of the stream. Once the live stream ends, a full recording is generated, which can be accessed separately.
Updated 2 days ago