brightcove / videojs-thumbnails

A video.js plugin that displays thumbnail images over the scrubber.
Other
168 stars 97 forks source link

Time value in minutes? 5 seconds equal 5: and 2 minute 30 seconds ???? #40

Open dlws21 opened 6 years ago

dlws21 commented 6 years ago

My video lenght is 5 minutes 44 seconds I would set thumbnails

video.thumbnails({ // 0 second 0: { src: 'http://example.com/thumbnail1.png', width: '120px' }, // 90 seconds 90: { src: 'http://example.com/thumbnail41.png' } // 1:20 seconds (120 works) 120 : { src: 'http://example.com/thumbnail52.png' } // 2:30 (230 doesnt work) 230 : { src: 'http://example.com/thumbnail124.png' }

Please help });

malickyeu commented 6 years ago

I have similar problem:

player.thumbnails({
    0: { // shown from 0
        src: 'example-thumbnail.png'
    },
    60: { // shown from 1:40 (+40 seconds) - on Fullscreen - reduced to half size at 2:20 (+ 80sec)
        src: 'example-thumbnail_1.png'
    },
    180: { // shown from 3:40 (+40 seconds) - on Fullscreen - reduced to half size at 4:20 (+ 80sec)
        src: 'example-thumbnail_2.png'
    }
});