Absolute positioning in the file with JS in IE and Mozilla
Posted: 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
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.
Would greatly appreciate suggestions
~ Alex.
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>
~ Alex.