Skip to content

How to display a thumbnail instead of the play icon for play.html when not using auto play? #6234

Answered by lastpeony
Mohit-3196 asked this question in FAQs
Discussion options

You must be logged in to vote

The embedded player in Ant Media Server relies on videojs as its foundation. Within videojs, there exists a poster property, allowing for the display of an image prior to playback initiation. You can refer to this feature in the documentation provided here: https://docs.videojs.com/docs/guides/options.html.

Currently, the embedded player is configured to retrieve the poster from the "previews" folder located within your local website, using the name of the stream. For instance, within the directory where your embedded player resides on your website, you would place a PNG image named after your stream, such as "teststream.png". The embedded player will then automatically showcase this imag…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by lastpeony
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants