Accessing following html directly from file system gives me the correct duration.
<video src="multimedia/bbb400p.ogv" id="v"></video>
<button onclick="alert(document.getElementById('v').duration);
document.getElementById('v').play()">Play</button>
However, accessing it through mongrel web server (on my machine and through heroku cloud service) gives me an NaN.
Also created test code that added a listener for the 'canplay' event and still get a duration of NaN using server.
This happens in FireFox and Chrome.
Any help would be appreciated.