How to fastforward embeded vlc in mozilla

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
jiahui
New Cone
New Cone
Posts: 9
Joined: 15 May 2008 07:33

How to fastforward embeded vlc in mozilla

Postby jiahui » 02 Jul 2008 06:38

Hi all,

I am creating a webpage base on the example given in VLC HOW-tos. There are already 4 controls given in the example which are:

1.play
2.stop
3.pause
4.fullscreen

I would like to add a control to fastforward and rewind the video in the website. I tried to use the seek(secounds,is_relative) command but
it did not work for me. This is what i tried:

<a href="javascript:;" onclick='document.video2.seek(10,true)()'>fastforward</a>

Any enlightening is desired. Thx alot :D

jiahui
New Cone
New Cone
Posts: 9
Joined: 15 May 2008 07:33

Re: How to fastforward embeded vlc in mozilla

Postby jiahui » 14 Jul 2008 03:44

Hi all.

i found out the way to fast forward!! I used javascript to do it in my webpage. If any1 needs to fast forward embedded vlc player, try this:


function fastforward()
{
var vlc=document.getElementById("vlc");
vlc.input.time = vlc.input.time + 2000;
}


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 24 guests