diff --git wp-includes/js/mediaelement/wp-mediaelement.css wp-includes/js/mediaelement/wp-mediaelement.css
index 2160abf..1115153 100644
|
|
|
8 | 8 | |
9 | 9 | .mejs-controls .mejs-time-rail .mejs-time-current { |
10 | 10 | background: #d54e21; |
| 11 | } |
| 12 | |
| 13 | .me-cannotplay a { |
| 14 | color: inherit; |
| 15 | } |
| 16 | |
| 17 | .me-cannotplay a span { |
| 18 | padding: 0; |
11 | 19 | } |
| 20 | No newline at end of file |
diff --git wp-includes/js/mediaelement/wp-mediaelement.js wp-includes/js/mediaelement/wp-mediaelement.js
index c162128..edbbd06 100644
|
|
|
4 | 4 | mejs.plugins.silverlight[0].types.push('audio/x-ms-wma'); |
5 | 5 | |
6 | 6 | $(function () { |
7 | | $('.wp-audio-shortcode, .wp-video-shortcode').mediaelementplayer(); |
| 7 | $('.wp-audio-shortcode, .wp-video-shortcode').mediaelementplayer({ |
| 8 | error : function (elem) { |
| 9 | var parent = $(elem).closest('.mejs-container'); |
| 10 | parent |
| 11 | .removeAttr('style').css('background-color', 'transparent') |
| 12 | .find('.mejs-mediaelement').css('position', 'relative').end() |
| 13 | .find('.me-cannotplay').removeAttr('style').end() |
| 14 | } |
| 15 | }); |
8 | 16 | }); |
9 | 17 | |
10 | 18 | }(jQuery)); |
| 19 | No newline at end of file |