Poster of MP4: Get the first frame of video

Comments

1 comment

  • Avatar
    Loic Verger Del Bove

    Hi Itamar,

    Raw URLs are not yet supported by our Video Player but there is a workaround.

    You can first generate a video thumbnail of the video. If you want the first frame, you can use the start_offset parameter and set it to 0 e.g https://res.cloudinary.com/demo/video/upload/so_0/dog.jpg. Then you can use this URL as the poster URL without forgetting to doubling the extension i.e:

    var demoplayer = cld.videoPlayer('doc-player', {
    publicId: 'dog',
    controls: true,
    posterOptions: { publicId: 'https://res.cloudinary.com/demo/video/upload/so_0/dog.jpg.jpg'}
    }).width(500);

    You can find below 2 examples of the video player with and without the poster:

    Hope that helps.

    Best,

    Loic

    0
    Comment actions Permalink

Please sign in to leave a comment.