Go
Not registered? Sign up!

Stopping a chain of mutual triggering SEEK event?

Google Translate
2 posts | return to the JavaScript Interaction forum | get the rss feed for this thread

Nov. 16, 2009Giuseppe Sollazzo

Re: my previous thread,
I think I can state the problem more clearly this way.

I want two players to synch on clicking the slidebar. I.e. if I slide on playerA, playerB gets to the same point and viceversa.

Ideally, I would like to distinguish between "internal" SEEK events and those caused by clicks on the slider. Is this possible?

What I do now, is I have a monitor for SEEK events (pseudocode):
1) if playerA get SEEKed -> playerB.sendEvent (SEEK)
2) if playerB get SEEKed -> playerA.sendEvent (SEEK)


Problem is, the call to sendEvent triggers another SEEK event that leeds to a loop of SEEK event triggering.

Is there any way to stop it/deal with it?

Thanks,

Nov. 17, 2009Zachary Ozer

Hi Giuseppe,

There's really no way to do this with the player - a seek event is a seek event. You'd have to simply keep track of the seek in JavaScript and ignore it.

Add a reaction

You can also return to the category or try this search for related threads.


 

Search the Forums

Go

Support

Support Here are some helpful links to learn more about the JW Player™:

Monetize Your Video

Monetize Your Video Earn money with ads from LongTail's AdSolution. Watch our demos and sign up now!

Why Buy a License?

Why Buy a License? If you don’t buy a commercial license, you cannot use a JW Player™ on (i) a site that has ads; (ii) a corporate site; or a (iii) CMS. Our licenses are very inexpensive, so what are you waiting for? Buy a license today.