Porting from WMPlayer to VLC

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
salinaale
New Cone
New Cone
Posts: 1
Joined: 21 Sep 2006 09:48

Porting from WMPlayer to VLC

Postby salinaale » 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>

Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 45 guests