Skip to content
Permalink
Browse files
Media: Upgrade MediaElement.js from 2.22.0 to 4.2.3.
Props rafa8626, grosbouff, westonruter, azaozz, Plastikschnitzer for testing.
See #39686.

Built from https://develop.svn.wordpress.org/trunk@41198


git-svn-id: http://core.svn.wordpress.org/trunk@41038 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information
westonruter committed Aug 1, 2017
1 parent 59279ab commit 7af3b927362c619752eedd3f9cf209cdaefa0eca
Showing with 17,581 additions and 98 deletions.
  1. +3 −0 wp-admin/about.php
  2. +2 −2 wp-admin/includes/ajax-actions.php
  3. +1 −0 wp-content/themes/twentyfourteen/inc/widgets.php
  4. +3 −4 wp-includes/js/media-audiovideo.js
  5. +1 −1 wp-includes/js/media-audiovideo.min.js
  6. BIN wp-includes/js/mediaelement/background.png
  7. BIN wp-includes/js/mediaelement/bigplay.png
  8. +0 −14 wp-includes/js/mediaelement/bigplay.svg
  9. BIN wp-includes/js/mediaelement/controls.png
  10. +0 −1 wp-includes/js/mediaelement/controls.svg
  11. BIN wp-includes/js/mediaelement/flashmediaelement.swf
  12. +0 −4 wp-includes/js/mediaelement/froogaloop.min.js
  13. BIN wp-includes/js/mediaelement/jumpforward.png
  14. +89 −0 wp-includes/js/mediaelement/lang/ca.js
  15. +90 −0 wp-includes/js/mediaelement/lang/cs.js
  16. +90 −0 wp-includes/js/mediaelement/lang/de.js
  17. +90 −0 wp-includes/js/mediaelement/lang/es.js
  18. +90 −0 wp-includes/js/mediaelement/lang/fa.js
  19. +91 −0 wp-includes/js/mediaelement/lang/fr.js
  20. +87 −0 wp-includes/js/mediaelement/lang/hr.js
  21. +90 −0 wp-includes/js/mediaelement/lang/hu.js
  22. +90 −0 wp-includes/js/mediaelement/lang/it.js
  23. +90 −0 wp-includes/js/mediaelement/lang/ja.js
  24. +90 −0 wp-includes/js/mediaelement/lang/ko.js
  25. +91 −0 wp-includes/js/mediaelement/lang/nl.js
  26. +90 −0 wp-includes/js/mediaelement/lang/pl.js
  27. +91 −0 wp-includes/js/mediaelement/lang/pt-br.js
  28. +92 −0 wp-includes/js/mediaelement/lang/pt.js
  29. +90 −0 wp-includes/js/mediaelement/lang/ro.js
  30. +90 −0 wp-includes/js/mediaelement/lang/ru.js
  31. +90 −0 wp-includes/js/mediaelement/lang/sk.js
  32. +89 −0 wp-includes/js/mediaelement/lang/sv.js
  33. +89 −0 wp-includes/js/mediaelement/lang/uk.js
  34. +90 −0 wp-includes/js/mediaelement/lang/zh-cn.js
  35. +91 −0 wp-includes/js/mediaelement/lang/zh.js
  36. BIN wp-includes/js/mediaelement/loading.gif
  37. +8,225 −0 wp-includes/js/mediaelement/mediaelement-and-player.js
  38. +6 −21 wp-includes/js/mediaelement/mediaelement-and-player.min.js
  39. BIN wp-includes/js/mediaelement/mediaelement-flash-audio-ogg.swf
  40. BIN wp-includes/js/mediaelement/mediaelement-flash-audio.swf
  41. BIN wp-includes/js/mediaelement/mediaelement-flash-video-hls.swf
  42. BIN wp-includes/js/mediaelement/mediaelement-flash-video-mdash.swf
  43. BIN wp-includes/js/mediaelement/mediaelement-flash-video.swf
  44. +3,827 −0 wp-includes/js/mediaelement/mediaelement.js
  45. +13 −0 wp-includes/js/mediaelement/mediaelement.min.js
  46. +758 −0 wp-includes/js/mediaelement/mediaelementplayer-legacy.css
  47. +1 −0 wp-includes/js/mediaelement/mediaelementplayer-legacy.min.css
  48. +758 −0 wp-includes/js/mediaelement/mediaelementplayer.css
  49. +1 −1 wp-includes/js/mediaelement/mediaelementplayer.min.css
  50. BIN wp-includes/js/mediaelement/mejs-controls.png
  51. +1 −0 wp-includes/js/mediaelement/mejs-controls.svg
  52. +394 −0 wp-includes/js/mediaelement/renderers/dailymotion.js
  53. +13 −0 wp-includes/js/mediaelement/renderers/dailymotion.min.js
  54. +339 −0 wp-includes/js/mediaelement/renderers/facebook.js
  55. +13 −0 wp-includes/js/mediaelement/renderers/facebook.min.js
  56. +307 −0 wp-includes/js/mediaelement/renderers/soundcloud.js
  57. +13 −0 wp-includes/js/mediaelement/renderers/soundcloud.min.js
  58. +375 −0 wp-includes/js/mediaelement/renderers/twitch.js
  59. +13 −0 wp-includes/js/mediaelement/renderers/twitch.min.js
  60. +406 −0 wp-includes/js/mediaelement/renderers/vimeo.js
  61. +13 −0 wp-includes/js/mediaelement/renderers/vimeo.min.js
  62. BIN wp-includes/js/mediaelement/silverlightmediaelement.xap
  63. BIN wp-includes/js/mediaelement/skipback.png
  64. +0 −1 wp-includes/js/mediaelement/wp-mediaelement.css
  65. +16 −14 wp-includes/js/mediaelement/wp-mediaelement.js
  66. +1 −1 wp-includes/js/mediaelement/wp-mediaelement.min.css
  67. +1 −1 wp-includes/js/mediaelement/wp-mediaelement.min.js
  68. +3 −2 wp-includes/media.php
  69. +92 −27 wp-includes/script-loader.php
  70. +1 −1 wp-includes/version.php
  71. +1 −3 wp-includes/widgets/class-wp-widget-media-video.php
@@ -11,9 +11,12 @@

if ( ! wp_is_mobile() ) {
wp_enqueue_style( 'wp-mediaelement' );
wp_enqueue_script( 'mediaelement-vimeo' );
wp_enqueue_script( 'wp-mediaelement' );
wp_localize_script( 'mediaelement', '_wpmejsSettings', array(
'pluginPath' => includes_url( 'js/mediaelement/', 'relative' ),
'classPrefix' => 'mejs-',
'stretching' => 'responsive',
'pauseOtherPlayers' => '',
) );
}
@@ -3053,7 +3053,7 @@ function wp_ajax_parse_embed() {
$wp_scripts->done = array();
}
ob_start();
wp_print_scripts( 'wp-mediaelement' );
wp_print_scripts( array( 'mediaelement-vimeo', 'wp-mediaelement' ) );
$scripts = ob_get_clean();

$parsed = $styles . $html . $scripts;
@@ -3144,7 +3144,7 @@ function wp_ajax_parse_media_shortcode() {

wp_print_scripts( 'wp-playlist' );
} else {
wp_print_scripts( array( 'froogaloop', 'wp-mediaelement' ) );
wp_print_scripts( array( 'mediaelement-vimeo', 'wp-mediaelement' ) );
}

wp_send_json_success( array(
@@ -54,6 +54,7 @@ public function enqueue_scripts() {
$video_library = apply_filters( 'wp_video_shortcode_library', 'mediaelement' );
if ( in_array( 'mediaelement', array( $video_library, $audio_library ), true ) ) {
wp_enqueue_style( 'wp-mediaelement' );
wp_enqueue_script( 'mediaelement-vimeo' );
wp_enqueue_script( 'wp-mediaelement' );
}
}
@@ -795,17 +795,16 @@ MediaDetails = AttachmentDisplay.extend({
* @global MediaElementPlayer
*/
setPlayer : function() {
var baseSettings, src;
var src;

if ( this.players.length || ! this.media || this.scriptXhr ) {
return;
}

src = this.model.get( 'src' );

if ( src && src.indexOf( 'vimeo' ) > -1 && ! ( 'Froogaloop' in window ) ) {
baseSettings = wp.media.mixin.mejsSettings;
this.scriptXhr = $.getScript( baseSettings.pluginPath + 'froogaloop.min.js', _.bind( this.loadPlayer, this ) );
if ( src && src.indexOf( 'vimeo' ) > -1 && ! ( 'Vimeo' in window ) ) {
this.scriptXhr = $.getScript( 'https://player.vimeo.com/api/player.js', _.bind( this.loadPlayer, this ) );
} else {
this.loadPlayer();
}

Large diffs are not rendered by default.

Deleted file not rendered
Deleted file not rendered
Deleted file not rendered
Deleted file not rendered
Deleted file not rendered
Binary file not shown.

This file was deleted.

Deleted file not rendered
@@ -0,0 +1,89 @@
'use strict';/*!
* This is a `i18n` language object.
*
* Catalan
*
* @author
* Tongro
*
* @see core/i18n.js
*/
(function (exports) {
if (exports.ca === undefined) {
exports.ca = {
"mejs.plural-form": 1,
"mejs.download-file": "Descarregar arxiu",
// "mejs.install-flash": "You are using a browser that does not have Flash player enabled or installed. Please turn on your Flash player plugin or download the latest version from https://get.adobe.com/flashplayer/",
"mejs.fullscreen": "Pantalla completa",
"mejs.play": "Reproducció",
"mejs.pause": "Pausa",
// "mejs.time-slider": "Time Slider",
// "mejs.time-help-text": "Use Left/Right Arrow keys to advance one second, Up/Down arrows to advance ten seconds.",
//"mejs.live-broadcast" : "Live Broadcast",
// "mejs.volume-help-text": "Use Up/Down Arrow keys to increase or decrease volume.",
"mejs.unmute": "Reactivar silenci",
"mejs.mute": "Silenci",
// "mejs.volume-slider": "Volume Slider",
"mejs.video-player": "Reproductor de vídeo",
"mejs.audio-player": "Reproductor d'àudio",
"mejs.captions-subtitles": "Llegendes/Subtítols",
// "mejs.captions-chapters": "Chapters",
"mejs.none": "Ningú"
// "mejs.afrikaans": "Afrikaans",
// "mejs.albanian": "Albanian",
// "mejs.arabic": "Arabic",
// "mejs.belarusian": "Belarusian",
// "mejs.bulgarian": "Bulgarian",
// "mejs.catalan": "Catalan",
// "mejs.chinese": "Chinese",
// "mejs.chinese-simplified": "Chinese (Simplified)",
// "mejs.chinese-traditional": "Chinese (Traditional)",
// "mejs.croatian": "Croatian",
// "mejs.czech": "Czech",
// "mejs.danish": "Danish",
// "mejs.dutch": "Dutch",
// "mejs.english": "English",
// "mejs.estonian": "Estonian",
// "mejs.filipino": "Filipino",
// "mejs.finnish": "Finnish",
// "mejs.french": "French",
// "mejs.galician": "Galician",
// "mejs.german": "German",
// "mejs.greek": "Greek",
// "mejs.haitian-creole": "Haitian Creole",
// "mejs.hebrew": "Hebrew",
// "mejs.hindi": "Hindi",
// "mejs.hungarian": "Hungarian",
// "mejs.icelandic": "Icelandic",
// "mejs.indonesian": "Indonesian",
// "mejs.irish": "Irish",
// "mejs.italian": "Italian",
// "mejs.japanese": "Japanese",
// "mejs.korean": "Korean",
// "mejs.latvian": "Latvian",
// "mejs.lithuanian": "Lithuanian",
// "mejs.macedonian": "Macedonian",
// "mejs.malay": "Malay",
// "mejs.maltese": "Maltese",
// "mejs.norwegian": "Norwegian",
// "mejs.persian": "Persian",
// "mejs.polish": "Polish",
// "mejs.portuguese": "Portuguese",
// "mejs.romanian": "Romanian",
// "mejs.russian": "Russian",
// "mejs.serbian": "Serbian",
// "mejs.slovak": "Slovak",
// "mejs.slovenian": "Slovenian",
// "mejs.spanish": "Spanish",
// "mejs.swahili": "Swahili",
// "mejs.swedish": "Swedish",
// "mejs.tagalog": "Tagalog",
// "mejs.thai": "Thai",
// "mejs.turkish": "Turkish",
// "mejs.ukrainian": "Ukrainian",
// "mejs.vietnamese": "Vietnamese",
// "mejs.welsh": "Welsh",
// "mejs.yiddish": "Yiddish"
};
}
})(mejs.i18n);

0 comments on commit 7af3b92

Please sign in to comment.