diff --git src/wp-includes/js/media/audiovideo.manifest.js src/wp-includes/js/media/audiovideo.manifest.js
index 7217e02170..8e23190348 100644
|
|
var media = wp.media, |
3 | 3 | l10n = window._wpMediaViewsL10n || {}; |
4 | 4 | |
5 | 5 | /** |
| 6 | * |
| 7 | * @summary Defines the wp.media.mixin object. |
| 8 | * |
6 | 9 | * @mixin |
| 10 | * |
| 11 | * @since 4.2.0 |
7 | 12 | */ |
8 | 13 | wp.media.mixin = { |
9 | 14 | mejsSettings: baseSettings, |
10 | 15 | |
| 16 | /** |
| 17 | * @summary Pauses and removes all players. |
| 18 | * |
| 19 | * @since 4.2.0 |
| 20 | * |
| 21 | * @return {void} |
| 22 | */ |
11 | 23 | removeAllPlayers: function() { |
12 | 24 | var p; |
13 | 25 | |
… |
… |
wp.media.mixin = { |
20 | 32 | }, |
21 | 33 | |
22 | 34 | /** |
| 35 | * @summary Removes the player. |
| 36 | * |
23 | 37 | * Override the MediaElement method for removing a player. |
24 | 38 | * MediaElement tries to pull the audio/video tag out of |
25 | 39 | * its container and re-add it to the DOM. |
| 40 | * |
| 41 | * @since 4.2.0 |
| 42 | * |
| 43 | * @return {void} |
26 | 44 | */ |
27 | 45 | removePlayer: function(t) { |
28 | 46 | var featureIndex, feature; |
… |
… |
wp.media.mixin = { |
57 | 75 | }, |
58 | 76 | |
59 | 77 | /** |
| 78 | * |
| 79 | * @summary Removes and resets all players. |
| 80 | * |
60 | 81 | * Allows any class that has set 'player' to a MediaElementPlayer |
61 | 82 | * instance to remove the player when listening to events. |
62 | 83 | * |
63 | 84 | * Examples: modal closes, shortcode properties are removed, etc. |
| 85 | * |
| 86 | * @since 4.2.0 |
64 | 87 | */ |
65 | 88 | unsetPlayers : function() { |
66 | 89 | if ( this.players && this.players.length ) { |
… |
… |
wp.media.mixin = { |
74 | 97 | }; |
75 | 98 | |
76 | 99 | /** |
77 | | * Autowire "collection"-type shortcodes |
| 100 | * @summary Autowire "collection"-type shortcodes |
| 101 | * |
| 102 | * @since 4.2.0 |
78 | 103 | */ |
79 | 104 | wp.media.playlist = new wp.media.collection({ |
80 | 105 | tag: 'playlist', |
… |
… |
wp.media.playlist = new wp.media.collection({ |
91 | 116 | }); |
92 | 117 | |
93 | 118 | /** |
94 | | * Shortcode modeling for audio |
| 119 | * @summary Shortcode modeling for audio |
| 120 | * |
95 | 121 | * `edit()` prepares the shortcode for the media modal |
96 | 122 | * `shortcode()` builds the new shortcode after update |
97 | 123 | * |
98 | 124 | * @namespace |
| 125 | * |
| 126 | * @since 4.2.0 |
99 | 127 | */ |
100 | 128 | wp.media.audio = { |
101 | 129 | coerce : wp.media.coerce, |
… |
… |
wp.media.audio = { |
109 | 137 | width : 400 |
110 | 138 | }, |
111 | 139 | |
| 140 | /** |
| 141 | * @summary Instantiates a new media object with the next matching shortcode. |
| 142 | * |
| 143 | * @since 4.2.0 |
| 144 | * |
| 145 | * @param {string} data The text to apply the shortcode on. |
| 146 | * @returns {wp.media} The media object. |
| 147 | */ |
112 | 148 | edit : function( data ) { |
113 | 149 | var frame, shortcode = wp.shortcode.next( 'audio', data ).shortcode; |
114 | 150 | |
… |
… |
wp.media.audio = { |
121 | 157 | return frame; |
122 | 158 | }, |
123 | 159 | |
| 160 | /** |
| 161 | * @summary Generates an audio shortcode. |
| 162 | * |
| 163 | * @since 4.2.0 |
| 164 | * |
| 165 | * @param {Array} model Array with attributes for the shortcode. |
| 166 | * @returns {wp.shortcode} The audio shortcode object. |
| 167 | */ |
124 | 168 | shortcode : function( model ) { |
125 | 169 | var content; |
126 | 170 | |
… |
… |
wp.media.audio = { |
144 | 188 | }; |
145 | 189 | |
146 | 190 | /** |
147 | | * Shortcode modeling for video |
| 191 | * @summary Shortcode modeling for video |
| 192 | * |
148 | 193 | * `edit()` prepares the shortcode for the media modal |
149 | 194 | * `shortcode()` builds the new shortcode after update |
150 | 195 | * |
| 196 | * @since 4.2.0 |
| 197 | * |
151 | 198 | * @namespace |
152 | 199 | */ |
153 | 200 | wp.media.video = { |
… |
… |
wp.media.video = { |
164 | 211 | width : 640, |
165 | 212 | height : 360 |
166 | 213 | }, |
167 | | |
| 214 | /** |
| 215 | * @summary Instantiates a new media object with the next matching shortcode. |
| 216 | * |
| 217 | * @since 4.2.0 |
| 218 | * |
| 219 | * @param {string} data The text to apply the shortcode on. |
| 220 | * @returns {wp.media} The media object. |
| 221 | */ |
168 | 222 | edit : function( data ) { |
169 | 223 | var frame, |
170 | 224 | shortcode = wp.shortcode.next( 'video', data ).shortcode, |
… |
… |
wp.media.video = { |
182 | 236 | return frame; |
183 | 237 | }, |
184 | 238 | |
| 239 | /** |
| 240 | * @summary Generates an video shortcode. |
| 241 | * |
| 242 | * @since 4.2.0 |
| 243 | * |
| 244 | * @param {Array} model Array with attributes for the shortcode. |
| 245 | * @returns {wp.shortcode} The video shortcode object. |
| 246 | */ |
185 | 247 | shortcode : function( model ) { |
186 | 248 | var content; |
187 | 249 | |