﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc	focuses	prnumber
39686	Upgrade MediaElement to 4.X	rafa8626		"The latest version of MediaElement (3.0.2 by the end of the week) has covered many new media types. But there are things that need to be updated on your side to make it work:

1. Remove prior files and include new files inside '''wp-includes/js/mediaelement''' folder
2. On '''wp-includes/js/mediaelement/wp-mediaelement.js''':
     a. Remove lines related to Silverlight (since it’s no longer supported)
     b. Change line ''if ('flash' === mejs.pluginType'') to ''if (mejs.rendererName.match(/flash/gi) !== null)''
     c. Add in the player settings '''classPrefix: 'mejs-''''  to support prior class styles, since now uses BEM naming convention.
     d. Replace '''wp-includes/js/mediaelement/wp-mediaelement.min.js''' with changes specified above.
3. Modify '''wp-includes/script-loader.php''' to update the reference to MediaElementJS changing lines:
     a. ''$scripts->add( 'mediaelement', ""/wp-includes/js/mediaelement/mediaelement-and-player.min.js"", array('jquery'), '3.0.0', 1 );''
     b. ''$styles->add( 'mediaelement', ""/wp-includes/js/mediaelement/mediaelementplayer-legacy.min.css"", array(), '3.0.0');''
     c. Translations provided in ''mejsL10n''; refer to https://github.com/johndyer/mediaelement/blob/master/src/js/languages/en.js to see new format and whole list of translations
4. It’s worth to expand your Embeds code to use MediaElementJS to support new formats such as HLS, M(PEG)-DASH, YouTube, Vimeo, SoundCloud, Facebook and DailyMotion."	enhancement	closed	high	4.9	External Libraries	4.7.1	normal	fixed	has-dev-note		accessibility, javascript	
