How do I determine playback state from Javascript

Dec 27, 2011 at 3:24 AM

Hello, I need to pull on playback every 60 seconds to record that user watched the video.

 

How do I pull on the state to determine if playing is playing from Javascript? Or any other ways?

 

Thanks.

Jan 5, 2012 at 12:00 PM

Hi

Set the scriptablename of the player, this will callback to a javascript function with the name of onPlayerReady with one parameter that is the javascript bridge object. On that object you could listen for PlayStateChanged events, that should give you this information.

- Loke