Can't Get Seek to Work on Plug In

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
alexsbrown
New Cone
New Cone
Posts: 2
Joined: 22 Feb 2006 02:05
Contact:

Can't Get Seek to Work on Plug In

Postby alexsbrown » 25 Feb 2006 22:50

I am trying to write a web page that supports automation of VLC and other players. For some reason, when I try to use the "seek" method on VLC it constantly resets the audio clip back to the beginning.

Because I want to support whatever player the person has installed, I use an object tag to create the audio player:

<object id="audioPlayer" type="application/x-ogg" data="genie-joke.ogg" width="200" height="45"></object>

Then, I run a function that uses "try" across a variety of different functions to support different player types. I find that VLC is not responding, so I simplified the code to check just the VLC seek function:

<input type="button" value="Use seek to jump to 60 secs" onClick="audioPlayer.seek(60, false)">

Every time I click the button it jumps the audio back to the very start. I believe it should jump to the 60-second mark in the audio. The audio clip is about 140 seconds, so it is not a problem with the clip being too short.

I have also tried having the second argument be "true", ("seek(60, true)") which I believe should jump it ahead 60 seconds, relative to the current position, but that does the same thing, jumping the audio back to the start.

Any help you can offer is much appreciated!

P.S. I am running VLC 0.8.4a under Firefox 1.5.0.1 on Windows XP. If anyone has an example of a page that successfully uses the seek method, I would love to try it out.
Alex S. Brown, PMP
http://www.alexsbrown.com

Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: Google [Bot] and 65 guests