cannot obtain vlc.input.length

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
valky
New Cone
New Cone
Posts: 5
Joined: 05 Apr 2010 11:52

cannot obtain vlc.input.length

Postby valky » 05 Apr 2010 15:10

I can't obtain vlc.input.length information from avi files, when i use flv files, there is no problem, i don't get it. can you help me?

Code: Select all

//length of the input file var length = vlc.input.length; hn = document.getElementById("length"); hn.innerHTML = 'Length: ' + length + ' ms'; }

whome
Blank Cone
Blank Cone
Posts: 37
Joined: 14 Jun 2008 15:40

Re: cannot obtain vlc.input.length

Postby whome » 11 Apr 2010 21:09

From the plugin (javascript) point of view there is very little you can do about it, method gives a valid response or not. Maybe you must wait for few seconds after a play command before getting an input length? Another is a container codec does not expose a duration for some reason.


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 8 guests