The onend, onbegin, onpause, and onresume events are used to detect which control buttons should be disabled or enabled, depending on the play status of the media.
Media Timer:0
To view the source code, right-click this page and choose View Source from the shortcut menu that appears.