When you play a media element, sound or video, you may want to be notified when the player starts or stops. The player object publishes two interesting events named MediaOpened and MediaEnded. The first event is raised when the video or the sound is over