Why can't we stop recording in less than one second?  I vaguely recall something about that but don't remember why.  This seems like an arbitrary and user-unfriendly restriction. So if you really have to do this there should be a comment explaining, ideally with a reference to the bug number that requires it.  

Ah. I think I see. You've changed when the 'recording' property is set, so now you're also checking videoElapsed.

I don't like it.  Please see if Diego's patch resolves this and if not, then build a solution around Diego's patch.