Make WordPress Core

Ticket #27645: 27645.patch

File 27645.patch, 1.1 KB (added by joedolson, 11 years ago)

Add default keyboard support to MediaElementJS player

  • wp-includes/js/mediaelement/wp-mediaelement.js

     
    1515                        settings.pluginPath = _wpmejsSettings.pluginPath;
    1616                }
    1717
     18                settings.alwaysShowControls = 'true';
     19               
    1820                settings.success = function (mejs) {
    1921                        var autoplay = mejs.attributes.autoplay && 'false' !== mejs.attributes.autoplay;
    2022                        if ( 'flash' === mejs.pluginType && autoplay ) {
  • wp-includes/js/mediaelement/wp-playlist.js

     
    3030
    3131                        _.bindAll( this, 'bindPlayer', 'bindResetPlayer', 'setPlayer', 'ended', 'clickTrack' );
    3232
     33                        this.settings.alwaysShowControls = 'true';
     34                       
    3335                        if ( ! _.isUndefined( window._wpmejsSettings ) ) {
    3436                                this.settings.pluginPath = _wpmejsSettings.pluginPath;
    3537                        }