mediaplayer: playstatechange event

S

Sjeiti

I have an embedded player that I'm interacting with via javascript.
Now the SDK example on the playStateChange event is:

<SCRIPT LANGUAGE = "JScript" FOR = Player EVENT =
playStateChange(NewState)>
// (...) switch states omitted
</SCRIPT>

Yet I need to attach the event dynamicly in an external script.
I'd say would go like this:

Mplayer.onplaystatechange = g_cPlayer.changestate;

This would call the function changestate.
But it doesn't work... even though Mplayer.playState does return the state.

Anybody know what I'm doing wrong?

gr...

Ron
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,432
Messages
2,571,681
Members
48,796
Latest member
Greg L.

Latest Threads

Top