On the 30 July 2012 version of the Media Source Extensions spec, a duration attribute was added to the MediaSource object: http://dvcs.w3.org/hg/html-media/raw-file/tip/media-source/media-source.html#dom-duration
This has been fixed.