Media: Upgrade MediaElement.js from 2.22.0 to 4.2.3.

Props rafa8626, grosbouff, westonruter, azaozz, Plastikschnitzer for testing.
See #39686.


git-svn-id: https://develop.svn.wordpress.org/trunk@41198 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Weston Ruter
2017-08-01 04:42:58 +00:00
parent 0ac2a97aad
commit a0748817c6
69 changed files with 17581 additions and 99 deletions

View File

@@ -2502,7 +2502,7 @@ function wp_video_shortcode( $attr, $content = '' ) {
}
if ( $is_vimeo ) {
wp_enqueue_script( 'froogaloop' );
wp_enqueue_script( 'mediaelement-vimeo' );
}
$primary = true;
@@ -2544,6 +2544,7 @@ function wp_video_shortcode( $attr, $content = '' ) {
if ( 'mediaelement' === $library && did_action( 'init' ) ) {
wp_enqueue_style( 'wp-mediaelement' );
wp_enqueue_script( 'wp-mediaelement' );
wp_enqueue_script( 'mediaelement-vimeo' );
}
// Mediaelement has issues with some URL formats for Vimeo and YouTube, so
@@ -3945,7 +3946,7 @@ function attachment_url_to_postid( $url ) {
*/
function wpview_media_sandbox_styles() {
$version = 'ver=' . get_bloginfo( 'version' );
$mediaelement = includes_url( "js/mediaelement/mediaelementplayer.min.css?$version" );
$mediaelement = includes_url( "js/mediaelement/mediaelementplayer-legacy.min.css?$version" );
$wpmediaelement = includes_url( "js/mediaelement/wp-mediaelement.css?$version" );
return array( $mediaelement, $wpmediaelement );