updated for html5 video