Update mediaelement to 2.4.12. Fix #1766

Port of #1777 to stable5