Reputation: 1312
Does JW Player support events which fires a function at specified second only? I found no info in the docu.
It should work like this:
jwplayer().atTime(5, functions(){ /* do something */ })
jwplayer().atTime(9, functions(){ /* do something */ })
Upvotes: 1
Views: 5330
Reputation: 2140
The event is onTime(callback) While the player is playing, this event is fired as the playback position gets updated.This may occur as frequently as 10 times per second.
Event attributes:
duration: Number: Duration of the current item in seconds.
offset: Number: When playing streaming media, this value contains the last unbuffered seek offset.
position: Number: Playback position in seconds.
For more events: JWPlayer Events and more
Upvotes: 4