ampervue / ngJWPlayer

Angular directives to instanciate a jwPlayer
MIT License
12 stars 6 forks source link

Seek option #16

Closed liffeyd closed 7 years ago

liffeyd commented 7 years ago

Is it possible to use the seek function on jwplayer. If so how?

This is how it would be done in a "normal" page a href="#" onclick="jwplayer().seek(2437);"

I just can't figure how to do it in Angular.

liffeyd commented 7 years ago

Solved by doing the obvious :)

function PlayerSeek(chapter) { $log.info('PlayerSeek ' + chapter.IndexTime); jwplayer().seek(chapter.IndexTime); }