Skip to content
This repository has been archived by the owner on Dec 17, 2018. It is now read-only.

Thumbnail onclick seek to the time. #24

Open
ghost opened this issue Oct 12, 2014 · 7 comments
Open

Thumbnail onclick seek to the time. #24

ghost opened this issue Oct 12, 2014 · 7 comments

Comments

@ghost
Copy link

ghost commented Oct 12, 2014

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
Copy link
Contributor

gkatsev commented Oct 12, 2014

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

@ghost
Copy link
Author

ghost commented Oct 12, 2014

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

@gkatsev
Copy link
Contributor

gkatsev commented Oct 12, 2014

I do not. Have a working example on jsbin?

@ghost
Copy link
Author

ghost commented Oct 12, 2014

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

@ghost
Copy link
Author

ghost commented Oct 12, 2014

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
Copy link
Author

ghost commented Oct 13, 2014

Is the demo page helpful? @gkatsev

@ghost
Copy link
Author

ghost commented Oct 21, 2014

Thank you for you help!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant