For each video that you upload in the video library, you can generate a video thumbnail by capturing images from the video. You then select the image you want to use as a video thumbnail in the video galley, for example.
In addition to this thumbnail generation, you can can create an automatic thumbnail generation mechanism for HTML5 videos. You do this by using a third-party component to generate the video thumbnails. For example, you can use the nReco video converter. You add a reference to the nReco assembly and then implement the interface for the custom thumbnail generation. Finally, you replace the default thumbnail generation with the custom one.
To do this:
EXAMPLE: For more information about the code of the class, see CustomVideoThumbnailGenerator.cs in Sitefinity documentation-samples on GitHub.
In the code above, you instantiate object of type FFMpegConverter and you provide the full path to the:
The FFMpegConverter object generates a thumbnail that is read as a file stream and an object of type System.Drawing.Image is returned as a result.
EXAMPLE: For more information, see Global.asax.cs in Sitefinity documentation-samples on GitHub.
Back To Top
To submit feedback, please update your cookie settings and allow the usage of Functional cookies.
Your feedback about this content is important
Copyright © 2023 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.
Progress, Telerik, Ipswitch, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.
Powered by Progress Sitefinity