Merge "Make sure the onended event is dispatched even when the user dismisses the video before it plays to completion." into froyo