[vlc] help me!!

Hajcsák Gergely hajcsak at infotech-team.hu
Fri Dec 15 17:42:28 CET 2006


Hello!

I have a big problem with vlc mozilla plugin. My html/js code is bottom of the mail...
The following code is playing, stoping, pauseing, makeing full screen with my video,
but the get_length(), get_position() functions cannot working and gets 0 if the video is playing
and gets -20 if the video is stopped.

I need theese function, cause i want to create a player to vlc in my webpage and the
time pointer needs the length of the video.

What is the problem???

windows xp, mozilla firefox 2.0, and the lastest version from the vlc ftp 0.8.5
I tried to run the code with other vlc versions, but the result was same. :(:(

Please help me!!!

"
<html>
<head><title>Demo of VLC mozilla plugin</title></head>

<body>

<h1>Demo of VLC mozilla plugin - Example 1</h1>

<embed type="application/x-vlc-plugin"
         name="video1"
         autoplay="no" loop="yes" width="400" height="300"
         target="http://192.168.1.1/tit/figyelo_2/video/m1.avi" />
<br />
  <a href="javascript:;" onclick='document.video1.play()'>Play video1</a>
  <a href="javascript:;" onclick='document.video1.pause()'>Pause video1</a>
  <a href="javascript:;" onclick='document.video1.stop()'>Stop video1</a>
  <a href="javascript:;" onclick='document.video1.fullscreen()'>Fullscreen</a>
  
  <a href="javascript:;" onclick='document.video1.mute()'>hang_ki</a>
  <a href="javascript:;" onclick='alert(document.video1.get_position())'>get_position()</a>
  <a href="javascript:;" onclick='alert(document.video1.get_length())'>get_length()</a>
  <a href="javascript:;" onclick='alert(document.video1.get_time())'>get_time()</a>
  <a href="javascript:;" onclick='alert(document.video1.isplaying())'>isplaying()</a>
  <a href="javascript:;" onclick='document.video1.seek(100,false)'>seek()</a>
</body>
</html>

"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc/attachments/20061215/d7e7bbfb/attachment.html>


More information about the vlc mailing list