Fix a few bugs with the mediaelement player