Bug 1082563 - video playback screen remains black for few sec after susp...

...end resume in video app
This seems out of place here. I'd integrate this into setVideoURL() instead. That way, the function that sets the onloadedmetadata handler also clears it. You'll need a nested function inside setVideoURL to clear the handler before calling the callback.