brightcove / videojs-thumbnails

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

Thumbnail onclick seek to the time. #24

Open ghost opened 9 years ago

ghost commented 9 years ago

Hello,

I have a idea. If the Thumbnail is clicked player seek to the current time of the thumbnail.

img.onclick = function(event) { ? };

Can you help me, please?

gkatsev commented 9 years ago

You probably want to add a click handler to the img element and use the mouseTime to figure out where to seek to.

ghost commented 9 years ago

Thanks for the fast answer. Exactly, I tried that but it doesn't work. Have you a example?

gkatsev commented 9 years ago

I do not. Have a working example on jsbin?

ghost commented 9 years ago

I haven't got a jsbin demo but I uploaded a demo page on my webspace. - http://heikothomsen.de/media/videoplayer

ghost commented 9 years ago

The time display are the thumbnails as a .png. I want to click on the time display whereby the player is changing to the time.

ghost commented 9 years ago

Is the demo page helpful? @gkatsev

ghost commented 9 years ago

Thank you for you help!