MediaPlayer HTML5 EMPTY state implementation

Includes state transitions to other states.