react-hls icon indicating copy to clipboard operation
react-hls copied to clipboard

Define thumbnail for video

Open ChrisMcHarvey opened this issue 4 years ago • 3 comments
trafficstars

Have you thought about adding functionality for defining the thumbnail for a video file? Mine show a black viewer right now.

ChrisMcHarvey avatar Feb 05 '21 22:02 ChrisMcHarvey

This is a great suggestion, I'll have to look in to it :)

devcshort avatar Feb 09 '21 17:02 devcshort

Thanks!

ChrisMcHarvey avatar Feb 27 '21 00:02 ChrisMcHarvey

Hey @ChrisMcHarvey I looked in to this. This functionality actually should be available through this package already. Since the underlying component is just a regular video component, you can pass in any normal video element property that you'd normally have access to. This includes the ability to add a poster, which would just be a url to the image you want displayed as the thumbnail.

You can checkout this Tutorial that shows how to use the poser property.

Let me know if this is what you were needing, thanks!

devcshort avatar Mar 23 '21 00:03 devcshort