Porting from WMPlayer to VLC
Posted: 21 Sep 2006 09:52
Hi,
i would like to detect a playEvent with javascript and show some info (like time elapsed etc etc).
How could i do with VLC?
This is what i done with WMPlayer...
...
...
<OBJECT id="VIDEO" width="365" height="340"
CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"
type="application/x-oleobject">
<PARAM NAME="URL" VALUE="http://www.sss.com/aaa.mpeg">
<PARAM NAME="SendPlayStateChangeEvents" VALUE="True">
<PARAM NAME="AutoStart" VALUE="True">
<PARAM name="uiMode" value="mini">
<PARAM name="PlayCount" value="1">
</OBJECT>
<SCRIPT LANGUAGE = "JScript" FOR = "VIDEO" EVENT = "PlayStateChange(NewState);">
if(3 == NewState)
{
document.modulo.title.value="Titolo PROVAPROVA";
document.modulo.frase.value="Track infos.... - " + VIDEO.currentMedia.durationString;
}
</SCRIPT>
i would like to detect a playEvent with javascript and show some info (like time elapsed etc etc).
How could i do with VLC?
This is what i done with WMPlayer...
...
...
<OBJECT id="VIDEO" width="365" height="340"
CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"
type="application/x-oleobject">
<PARAM NAME="URL" VALUE="http://www.sss.com/aaa.mpeg">
<PARAM NAME="SendPlayStateChangeEvents" VALUE="True">
<PARAM NAME="AutoStart" VALUE="True">
<PARAM name="uiMode" value="mini">
<PARAM name="PlayCount" value="1">
</OBJECT>
<SCRIPT LANGUAGE = "JScript" FOR = "VIDEO" EVENT = "PlayStateChange(NewState);">
if(3 == NewState)
{
document.modulo.title.value="Titolo PROVAPROVA";
document.modulo.frase.value="Track infos.... - " + VIDEO.currentMedia.durationString;
}
</SCRIPT>