Get a livestream thumbnail
Learn how to retrieve thumbnails for a live stream
For live streams, we provide a single updating thumbnail URL - it will return the first frame of the most recent segment of video.
Create a stream
Follow our previous guide on creating a stream to get a stream key. A creator can then start a stream.
Fetch playback info
After <1 minute of the stream ingest starting, a thumbnail URL should be returned from the playback info API endpoint.
Example response:
You should see an entry in the source
array with the type image/png
. This
URL will always return the latest thumbnail of your stream.
The thumbnail will always have a hrn
of Thumbnail (PNG)
and type
of
image/png
.
This thumbnail is also used in the Player - it is automatically parsed in
getSrc
and passed as the video poster
attribute, and updated every few seconds.
Examples
A common use for this feature is to show a live preview URL which constantly updates with the latest frame from the stream.
Was this page helpful?