@ -39,6 +40,13 @@ In general, `MediaElement.js` supports **IE11+, MS Edge, Chrome, Firefox, Safari
**It is strongly recommended to read the entire documentation and check the `demo` folder to get the most out of this package**. Visit [here](docs) to start.
## * IMPORTANT NOTE for Safari users (Jun 8, 2017)
Since Sierra version, `autoplay` policies have changed. You may experience an error if you try to execute `play` programatically or via `autoplay` attribute with MediaElement, unless `muted` attribute is specified.
For more information, read https://webkit.org/blog/7734/auto-play-policy-changes-for-macos/
## * IMPORTANT CHANGES on `4.2.0` version
As part of the continuous improvements the player, we have decided to drop completely support for IE9 and IE10, since market share of those browsers together is 0.4%, according to http://caniuse.com/usage-table.
@ -2828,6 +2912,29 @@ var YouTubeIframeRenderer = {
assignMethods(methods[_i]);
}
varerrorHandler=functionerrorHandler(error){
varmessage='';
switch(error.data){
case2:
message='The request contains an invalid parameter value. Verify that video ID has 11 characters and that contains no invalid characters, such as exclamation points or asterisks.';
break;
case5:
message='The requested content cannot be played in an HTML5 player or another error related to the HTML5 player has occurred.';
break;
case100:
message='The video requested was not found. Either video has been removed or has been marked as private.';
break;
case101:
case105:
message='The owner of the requested video does not allow it to be played in embedded players.';
* Fixed issue with `visible` method when `getClientRects` is not a function @rafa8626
* Fixed issues with `parseInt` method not setting radix in some calls @rafa8626
* Added missing argument in `secondsToTimeCode` method to check the time format given and display accordingly @rafa8626
* 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
* 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
* Fixed issue with timecode displaying 60 seconds @rafa8626
* Fixed JSDocs for some features @rafa8626
*4.2.6 (2017/09/19)*
* Fixed positioning of progress bar tooltip @rafa8626
* Added style to avoid flickering when using volume on Chrome @rafa8626
* Fixed broken UUT @rafa8626
* Added `configs` parameter for native FLV according to documentation for flv.js (https://github.com/mediaelement/mediaelement/pull/2344) @xiaosongxiaosong
* Added missing call to avoid further calls to attempt set the player's dimensions once removed @rafa8626
* Fixed typo when checking error event and fixed workflow to loop multiple sources until valid one is found for `html5` and `native_hls` renderers @rafa8626
* Fixed workflow to enable/disable controls once error occurs and once user recovers from error @rafa8626
* Fixed issue when no `height` attribute but style is set to create proper player dimensions @rafa8626
* Use local variable for `getComputedStyle` polyfill to avoid recursion on Firefox (https://github.com/mediaelement/mediaelement/pull/2351) @synthecypher
* Fixed accessibility issues when using keyboard on focused progress bar and moved `keyActions` to their individual components @rafa8626
* Fixed issues with progress bar tooltip when media duration is too long @rafa8626
* Added new `mejs` variables needed for WordPress @rafa8626
* Fixed issues with events fired in incorrect time for `flash_video` renderer @milax
* Set specific settings for embedding flash object in Edge browser (https://github.com/mediaelement/mediaelement/pull/2364) @milax
* Added new constant to detect `passive events` and added conditional for `touchstart` events @rafa8626
* Removed width and height from `embed` object to ensure Flash audio will play on Chrome (https://github.com/mediaelement/mediaelement/pull/2367) @milax
* Fixed issue with Caption/Chapters menus not selecting options properly when using mouse @rafa8626 and @Instagit
* Removed black area when Flash player is used in audio player (https://github.com/mediaelement/mediaelement/pull/2370) @milax
* Fixed issue with `poster` option not being set if `poster` attribute is absent @rafa8626
* Moved code inside `player.js` to corresponding features to restore original order or operations when creating layers @rafa8626
* Added `unmute` command for Facebook renderer @rafa8626
* Fixed events emitting and run handlers of active renderer only for Flash and HTML5 renderer (https://github.com/mediaelement/mediaelement/pull/2368) @milax
* Fixed issues when setting sources for Flash HLS renderer and added missing events @rafa8626
* Upgraded `hls.js` to 0.8.2 version and `flv.js` to 1.3.3 version @rafa8626
* Refactor `Facebook` renderer to solve issues when instantiating multiple videos and added new `lang` parameter to load language on SDK @rafa8626
* Fixed typos in `Twitch` renderer that caused channels not to play properly @rafa8626
* Fixed typos in `Flash` renderer to avoid issues with `embed` dimensions @rafa8626
* Reintegrated old workflow to deal only with `dash.js` play errors @rafa8626
* Updated documentation @rafa8626
* Added documentation about MEJS installation through Bower (https://github.com/mediaelement/mediaelement/pull/2399) @thompsonemerson
*4.2.5 (2017/08/09)*
* Removed workflow that ignored MIME type to get a better media match @rafa8626
@ -41,6 +108,7 @@
* Added missing code to explain how to use `MediaElement` with `RequireJS`@rafa8626
* Integrated Flashls events to be processed by the player @rafa8626
* Fixed test file when using JSDom and Mocha Chai @rafa8626
* Changed arguments in `M(PEG)-DASH` native renderer to trigger correctly events @rafa8626