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
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