Browse Source

Minor - Update mediaelement to version 4.2.9

jmontoyaa 6 years ago
parent
commit
454468661f

+ 4 - 4
app/Resources/public/assets/mediaelement/.bower.json

@@ -23,12 +23,12 @@
     "./build/mediaelement-and-player.js",
     "./build/mediaelementplayer.css"
   ],
-  "version": "4.2.8",
-  "_release": "4.2.8",
+  "version": "4.2.9",
+  "_release": "4.2.9",
   "_resolution": {
     "type": "version",
-    "tag": "4.2.8",
-    "commit": "0896fce181f4f1450bdc1c70598e66fe0bfa872b"
+    "tag": "4.2.9",
+    "commit": "6d665634da067ac075cd49631e646c7b16f25510"
   },
   "_source": "https://github.com/johndyer/mediaelement.git",
   "_target": "4.*",

+ 90 - 0
app/Resources/public/assets/mediaelement/build/lang/ms.js

@@ -0,0 +1,90 @@
+'use strict';/*!
+ * This is a `i18n` language object.
+ *
+ * Malay (for inter-country use - see the countries mentioned in infobox`s `native to` at https://en.wikipedia.org/wiki/Malay_language)
+ *
+ * @author
+ *   muhdnurhidayat (Twitter: @mnh48com)
+ *   Sascha Greuel (Twitter: @SoftCreatR)
+ *
+ * @see core/i18n.js
+ */
+(function (exports) {
+	if (exports.ms === undefined) {
+		exports.ms = {
+			'mejs.plural-form': 0,			
+			'mejs.download-file': 'Muat Turun Fail',			
+			'mejs.install-flash': 'Anda sedang menggunakan pelayar internet yang tidak mempunyai pemain Flash. Sila aktifkan pemalam pemain Flash anda atau muat turun versi terbaru dari https://get.adobe.com/flashplayer/',			
+			'mejs.fullscreen': 'Skrin penuh',			
+			'mejs.play': 'Main',
+			'mejs.pause': 'Jeda',			
+			'mejs.time-slider': 'Lungsur Masa',
+			'mejs.time-help-text': 'Gunakan kekunci Anak Panah Kiri/Kanan untuk bergerak satu saat, Anak Panah Atas/Bawah untuk bergerak sepuluh saat.',
+			'mejs.live-broadcast' : 'Siaran Langsung',			
+			'mejs.volume-help-text': 'Gunakan kekunci Anak Panah Atas/Bawah untuk menguatkan atau memperlahankan bunyi.',
+			'mejs.unmute': 'Nyahsenyap',
+			'mejs.mute': 'Senyap',
+			'mejs.volume-slider': 'Lungsur Bunyi',			
+			'mejs.video-player': 'Pemain Video',
+			'mejs.audio-player': 'Pemain Audio',			
+			'mejs.captions-subtitles': 'Sarikata',
+			'mejs.captions-chapters': 'Bab',
+			'mejs.none': 'Tiada',
+			'mejs.afrikaans': 'Bahasa Afrikaans',
+			'mejs.albanian': 'Bahasa Albania',
+			'mejs.arabic': 'Bahasa Arab',
+			'mejs.belarusian': 'Bahasa Belarus',
+			'mejs.bulgarian': 'Bahasa Bulgaria',
+			'mejs.catalan': 'Bahasa Catalonia',
+			'mejs.chinese': 'Bahasa Cina',
+			'mejs.chinese-simplified': 'Bahasa Cina (Ringkas)',
+			'mejs.chinese-traditional': 'Bahasa Cina (Tradisional)',
+			'mejs.croatian': 'Bahasa Croatia',
+			'mejs.czech': 'Bahasa Czech',
+			'mejs.danish': 'Bahasa Denmark',
+			'mejs.dutch': 'Bahasa Belanda',
+			'mejs.english': 'Bahasa Inggeris',
+			'mejs.estonian': 'Bahasa Estonia',
+			'mejs.filipino': 'Bahasa Filipino',
+			'mejs.finnish': 'Bahasa Finland',
+			'mejs.french': 'Bahasa Perancis',
+			'mejs.galician': 'Bahasa Galicia',
+			'mejs.german': 'Bahasa Jerman',
+			'mejs.greek': 'Bahasa Greek',
+			'mejs.haitian-creole': 'Bahasa Kreol Haiti',
+			'mejs.hebrew': 'Bahasa Ibrani',
+			'mejs.hindi': 'Bahasa Hindi',
+			'mejs.hungarian': 'Bahasa Hungary',
+			'mejs.icelandic': 'Bahasa Iceland',
+			'mejs.indonesian': 'Bahasa Indonesia',
+			'mejs.irish': 'Bahasa Ireland',
+			'mejs.italian': 'Bahasa Itali',
+			'mejs.japanese': 'Bahasa Jepun',
+			'mejs.korean': 'Bahasa Korea',
+			'mejs.latvian': 'Bahasa Latvia',
+			'mejs.lithuanian': 'Bahasa Lithuania',
+			'mejs.macedonian': 'Bahasa Macedonia',
+			'mejs.malay': 'Bahasa Melayu',
+			'mejs.maltese': 'Bahasa Malta',
+			'mejs.norwegian': 'Bahasa Norway',
+			'mejs.persian': 'Bahasa Parsi',
+			'mejs.polish': 'Bahasa Poland',
+			'mejs.portuguese': 'Bahasa Portugis',
+			'mejs.romanian': 'Bahasa Romania',
+			'mejs.russian': 'Bahasa Rusia',
+			'mejs.serbian': 'Bahasa Serbia',
+			'mejs.slovak': 'Bahasa Slovak',
+			'mejs.slovenian': 'Bahasa Slovene',
+			'mejs.spanish': 'Bahasa Sepanyol',
+			'mejs.swahili': 'Bahasa Swahili',
+			'mejs.swedish': 'Bahasa Sweden',
+			'mejs.tagalog': 'Bahasa Tagalog',
+			'mejs.thai': 'Bahasa Thai',
+			'mejs.turkish': 'Bahasa Turki',
+			'mejs.ukrainian': 'Bahasa Ukraine',
+			'mejs.vietnamese': 'Bahasa Vietnam',
+			'mejs.welsh': 'Bahasa Wales',
+			'mejs.yiddish': 'Bahasa Yiddish'
+		};
+	}
+})(mejs.i18n);

+ 23 - 9
app/Resources/public/assets/mediaelement/build/mediaelement-and-player.js

@@ -1017,7 +1017,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
 
 var mejs = {};
 
-mejs.version = '4.2.8';
+mejs.version = '4.2.9';
 
 mejs.html5media = {
 	properties: ['volume', 'src', 'currentTime', 'muted', 'duration', 'paused', 'ended', 'buffered', 'error', 'networkState', 'readyState', 'seeking', 'seekable', 'currentSrc', 'preload', 'bufferedBytes', 'bufferedTime', 'initialTime', 'startOffsetTime', 'defaultPlaybackRate', 'playbackRate', 'played', 'autoplay', 'loop', 'controls'],
@@ -1248,7 +1248,7 @@ Object.assign(_player2.default.prototype, {
 
 		t.exitFullscreenCallback = function (e) {
 			var key = e.which || e.keyCode || 0;
-			if (key === 27 && (Features.HAS_TRUE_NATIVE_FULLSCREEN && Features.IS_FULLSCREEN || t.isFullScreen)) {
+			if (t.options.enableKeyboard && key === 27 && (Features.HAS_TRUE_NATIVE_FULLSCREEN && Features.IS_FULLSCREEN || t.isFullScreen)) {
 				player.exitFullScreen();
 			}
 		};
@@ -1302,6 +1302,10 @@ Object.assign(_player2.default.prototype, {
 		    isNative = t.media.rendererName !== null && /(html5|native)/i.test(t.media.rendererName),
 		    containerStyles = getComputedStyle(t.getElement(t.container));
 
+		if (!t.isVideo) {
+			return;
+		}
+
 		if (t.options.useFakeFullscreen === false && Features.IS_IOS && Features.HAS_IOS_FULLSCREEN && typeof t.media.originalNode.webkitEnterFullscreen === 'function' && t.media.originalNode.canPlayType((0, _media.getTypeFromFile)(t.media.getSrc()))) {
 			t.media.originalNode.webkitEnterFullscreen();
 			return;
@@ -1390,6 +1394,10 @@ Object.assign(_player2.default.prototype, {
 		var t = this,
 		    isNative = t.media.rendererName !== null && /(native|html5)/i.test(t.media.rendererName);
 
+		if (!t.isVideo) {
+			return;
+		}
+
 		clearTimeout(t.containerSizeTimeout);
 
 		if (Features.HAS_TRUE_NATIVE_FULLSCREEN && (Features.IS_FULLSCREEN || t.isFullScreen)) {
@@ -1778,7 +1786,7 @@ Object.assign(_player2.default.prototype, {
 		    handleMouseup = function handleMouseup() {
 			if (mouseIsDown && t.getCurrentTime() !== null && t.newTime.toFixed(4) !== t.getCurrentTime().toFixed(4)) {
 				t.setCurrentTime(t.newTime);
-				t.setCurrentRail();
+				t.setCurrentRailHandle(t.newTime);
 				t.updateCurrent(t.newTime);
 			}
 			if (t.forcedHandlePause) {
@@ -1799,7 +1807,7 @@ Object.assign(_player2.default.prototype, {
 				startedPaused = t.paused;
 			}
 
-			if (t.options.keyActions.length) {
+			if (t.options.enableKeyboard && t.options.keyActions.length) {
 
 				var keyCode = e.which || e.keyCode || 0,
 				    duration = t.getDuration(),
@@ -2178,7 +2186,7 @@ Object.assign(_player2.default.prototype, {
 
 		var duration = t.getDuration();
 
-		if (isNaN(duration) || duration === Infinity || duration < 0) {
+		if (t.media !== undefined && (isNaN(duration) || duration === Infinity || duration < 0)) {
 			t.media.duration = t.options.duration = duration = 0;
 		}
 
@@ -3218,7 +3226,7 @@ Object.assign(_player2.default.prototype, {
 			mouseIsOver = false;
 		});
 		mute.addEventListener('keydown', function (e) {
-			if (t.options.keyActions.length) {
+			if (t.options.enableKeyboard && t.options.keyActions.length) {
 				var keyCode = e.which || e.keyCode || 0,
 				    volume = media.volume;
 
@@ -5167,11 +5175,12 @@ var MediaElementPlayer = function () {
 
 					delete t.node.autoplay;
 
+					t.node.setAttribute('src', '');
 					if (t.media.canPlayType((0, _media.getTypeFromFile)(src)) !== '') {
 						t.node.setAttribute('src', src);
 					}
 
-					if (~rendererName.indexOf('iframe')) {
+					if (rendererName && rendererName.indexOf('iframe') > -1) {
 						var layer = _document2.default.getElementById(t.media.id + '-iframe-overlay');
 						layer.remove();
 					}
@@ -5218,7 +5227,7 @@ var MediaElementPlayer = function () {
 				t.getElement(t.container).parentNode.insertBefore(t.node, t.getElement(t.container));
 			}
 
-			if (typeof t.media.renderer.destroy === 'function') {
+			if (t.media.renderer && typeof t.media.renderer.destroy === 'function') {
 				t.media.renderer.destroy();
 			}
 
@@ -5443,6 +5452,11 @@ var DefaultPlayer = function () {
 		get: function get() {
 			return this.getDuration();
 		}
+	}, {
+		key: 'remainingTime',
+		get: function get() {
+			return this.getDuration() - this.currentTime();
+		}
 	}, {
 		key: 'volume',
 		set: function set(volume) {
@@ -7473,7 +7487,7 @@ var SUPPORT_POINTER_EVENTS = exports.SUPPORT_POINTER_EVENTS = function () {
 	element.style.pointerEvents = 'auto';
 	element.style.pointerEvents = 'x';
 	documentElement.appendChild(element);
-	var supports = getComputedStyle && getComputedStyle(element, '').pointerEvents === 'auto';
+	var supports = getComputedStyle && (getComputedStyle(element, '') || {}).pointerEvents === 'auto';
 	element.remove();
 	return !!supports;
 }();

File diff suppressed because it is too large
+ 0 - 0
app/Resources/public/assets/mediaelement/build/mediaelement-and-player.min.js


+ 2 - 2
app/Resources/public/assets/mediaelement/build/mediaelement.js

@@ -1017,7 +1017,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
 
 var mejs = {};
 
-mejs.version = '4.2.8';
+mejs.version = '4.2.9';
 
 mejs.html5media = {
 	properties: ['volume', 'src', 'currentTime', 'muted', 'duration', 'paused', 'ended', 'buffered', 'error', 'networkState', 'readyState', 'seeking', 'seekable', 'currentSrc', 'preload', 'bufferedBytes', 'bufferedTime', 'initialTime', 'startOffsetTime', 'defaultPlaybackRate', 'playbackRate', 'played', 'autoplay', 'loop', 'controls'],
@@ -3192,7 +3192,7 @@ var SUPPORT_POINTER_EVENTS = exports.SUPPORT_POINTER_EVENTS = function () {
 	element.style.pointerEvents = 'auto';
 	element.style.pointerEvents = 'x';
 	documentElement.appendChild(element);
-	var supports = getComputedStyle && getComputedStyle(element, '').pointerEvents === 'auto';
+	var supports = getComputedStyle && (getComputedStyle(element, '') || {}).pointerEvents === 'auto';
 	element.remove();
 	return !!supports;
 }();

File diff suppressed because it is too large
+ 0 - 0
app/Resources/public/assets/mediaelement/build/mediaelement.min.js


File diff suppressed because it is too large
+ 0 - 0
app/Resources/public/assets/mediaelement/build/renderers/dailymotion.min.js


+ 1 - 1
app/Resources/public/assets/mediaelement/build/renderers/facebook.js

@@ -315,7 +315,7 @@ var FacebookRenderer = {
 		fbContainer.id = fb.id;
 		fbContainer.className = 'fb-video';
 		fbContainer.setAttribute('data-href', src);
-		fbContainer.setAttribute('data-allowfullscreen', true);
+		fbContainer.setAttribute('data-allowfullscreen', 'true');
 		fbContainer.setAttribute('data-controls', !!mediaElement.originalNode.controls);
 		mediaElement.originalNode.parentNode.insertBefore(fbContainer, mediaElement.originalNode);
 		mediaElement.originalNode.style.display = 'none';

File diff suppressed because it is too large
+ 0 - 0
app/Resources/public/assets/mediaelement/build/renderers/facebook.min.js


File diff suppressed because it is too large
+ 0 - 0
app/Resources/public/assets/mediaelement/build/renderers/soundcloud.min.js


File diff suppressed because it is too large
+ 0 - 0
app/Resources/public/assets/mediaelement/build/renderers/twitch.min.js


+ 3 - 3
app/Resources/public/assets/mediaelement/build/renderers/vimeo.js

@@ -367,9 +367,9 @@ var vimeoIframeRenderer = {
 		vimeoContainer.setAttribute('height', height);
 		vimeoContainer.setAttribute('frameBorder', '0');
 		vimeoContainer.setAttribute('src', '' + standardUrl + queryArgs);
-		vimeoContainer.setAttribute('webkitallowfullscreen', '');
-		vimeoContainer.setAttribute('mozallowfullscreen', '');
-		vimeoContainer.setAttribute('allowfullscreen', '');
+		vimeoContainer.setAttribute('webkitallowfullscreen', 'true');
+		vimeoContainer.setAttribute('mozallowfullscreen', 'true');
+		vimeoContainer.setAttribute('allowfullscreen', 'true');
 
 		mediaElement.originalNode.parentNode.insertBefore(vimeoContainer, mediaElement.originalNode);
 		mediaElement.originalNode.style.display = 'none';

File diff suppressed because it is too large
+ 0 - 0
app/Resources/public/assets/mediaelement/build/renderers/vimeo.min.js


+ 19 - 1
app/Resources/public/assets/mediaelement/changelog.md

@@ -1,5 +1,23 @@
 ### Version History
 
+*4.2.9 (2018/03/27)*
+
+* Fixed typo in documentation (https://github.com/mediaelement/mediaelement/pull/2512) @moagggi
+* Added remainingTime getter (https://github.com/mediaelement/mediaelement/pull/2505) @Lewiscowles1986
+* Fixed iframe parameters formatting for Vimeo/Facebook (https://github.com/mediaelement/mediaelement/pull/2498) @skreutzer
+* Added Malay translation (https://github.com/mediaelement/mediaelement/pull/2490) @MuhdNurHidayat
+* Fixed `getComputedStyle` in Firefox (https://github.com/mediaelement/mediaelement/pull/2487) @pgrzeszczak-neducatio
+* Fixed documentation for React usage @rafa8626
+* Added LICENSE file @rafa8626
+* Added conditionals to avoid executing `fullscreen` methods in audio tags @rafa8626
+* Added conditionals to avoid triggering keyboard events if `enableKeyboard` is false @rafa8626 
+* Added missing conditionals when destroying media @rafa8626
+* Modified Malay language in the demo @rafa8626
+* Set empty source when destroying player to prevent #2499 @rafa8626
+* Added conditional to avoid setting duration when `media` has been destroyed @rafa8626
+* Replaced callback when seeking in paused media to achieve correct behavior @rafa8626  
+* Updated documentation about using `startLanguage` and `toggleCaptionsButtonWhenOnlyOne` (https://github.com/mediaelement/mediaelement/pull/2520) @dmdewey
+
 *4.2.8 (2018/01/16)*
 
 * Clarify effect of setting `toggleCaptionsButtonWhenOnlyOne` (https://github.com/mediaelement/mediaelement/pull/2471) @cjcolvar
@@ -27,7 +45,7 @@
 * Fixed issues related to duplicated calls when triggering error and fixed style for poster when error is displayed @rafa8626
 * Fixed issue with captions not being rendered inside video frame on any state @rafa8626
 * Integrated `destroy` method in `MediaElement` class @rafa8626
-* Added validation to modify `SoundCloud` iframe atributes when using `video` tag @rafa8626
+* Added validation to modify `SoundCloud` iframe attributes when using `video` tag @rafa8626
 * Fixed issue when checking for native dimensions of `video` element to set responsive dimensions correctly @rafa8626
 * Added missing workflow to make `loop` work correctly in YouTube according to documentation @rafa8626
 * Changed paths for `hls.js` and `flv.js` renderers to always be up-to-date @rafa8626

Some files were not shown because too many files changed in this diff