Change poster image time in cloudinaryClient.video() method

Comments

1 comment

  • Avatar
    Aleksandar Kostadinov

    Hi Vahid,

    The thumbnail selected for the poster is not random but rather it uses the middle frame of the video.

    When generating an image from a video the start_offset (so in URLs) transformation parameter is used to tell Cloudinary from where in the video it should grab the frame from.

    For example, if you want to get the frame at 3 seconds into the video then you can add the so_3 ​transformation like so:
    https://res.cloudinary.com/demo/video/upload/so_3/dog.jpg

    This part of our documentation provides more details on the process of generating thumbnails for videos, including setting the offset parameter to auto and using percentages:
    https://cloudinary.com/documentation/video_manipulation_and_delivery#generating_video_thumbnails

    Please try this out and let us know how it goes or if there's anything else we can help with

    0
    Comment actions Permalink

Please sign in to leave a comment.