Absolute positioning in the file with JS in IE and Mozilla

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
alexsott2
Blank Cone
Blank Cone
Posts: 17
Joined: 25 May 2006 17:33

Absolute positioning in the file with JS in IE and Mozilla

Postby alexsott2 » 25 May 2006 19:42

Hi,

could anyone provide me with examples of absolute positioning in the video file done by javascript?

I need this for both IE and Mozilla.

for mozilla, with VLC plugin, I was able to do this by doing something like

Code: Select all

<embed type="application/x-vlc-plugin" name="video1" autoplay="yes" loop="no" target="http://.../movie1.mpg" /> <a href="javascript:;" onclick='document.video1.seek(600,0)'>Go Part 2</a>

But for IE, I am trying to use ActiveX and seeking doesn't seem to work.
I tried methods Time() Position() put_Position() with not much luck. Methods play() stop() however work normally.

Code: Select all

<OBJECT classid="clsid:E23FE9C6-778E-49D4-B537-38FCDE4887D8" codebase="/axvlc.cab" width="100" height="80" id="video1" events="True"> <param name="Src" value="http://.../movie1.mpg" /> <param name="ShowDisplay" value="True" /> <param name="AutoLoop" value="False" /> <param name="AutoPlay" value="True" /> </OBJECT> # THESE TWO LINES DO NOT WORK ! <a href="javascript:;" onclick='document.video1.Time(600)'>Go Part 2</a> <a href="javascript:;" onclick='document.video1.setVariable("Time", 600);'>Go Part 2</a>
Would greatly appreciate suggestions

~ Alex.

alexsott2
Blank Cone
Blank Cone
Posts: 17
Joined: 25 May 2006 17:33

Postby alexsott2 » 26 May 2006 19:13

Any suggestions?
Help would be really appreciated.


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 46 guests