Page 1 of 1

cannot obtain vlc.input.length

Posted: 05 Apr 2010 15:10
by valky
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'; }

Re: cannot obtain vlc.input.length

Posted: 11 Apr 2010 21:09
by whome
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.