[wp-trac] [WordPress Trac] #27389: MCE Views for Audio/Video

WordPress Trac noreply at wordpress.org
Fri Mar 14 14:35:51 UTC 2014


#27389: MCE Views for Audio/Video
----------------------------+-------------------------
 Reporter:  wonderboymusic  |       Owner:
     Type:  task (blessed)  |      Status:  new
 Priority:  normal          |   Milestone:  3.9
Component:  Media           |     Version:  trunk
 Severity:  normal          |  Resolution:
 Keywords:  has-patch       |     Focuses:  javascript
----------------------------+-------------------------

Comment (by wonderboymusic):

 In [changeset:"27539"]:
 {{{
 #!CommitTicketReference repository="" revision="27539"
 The `canPlayType` property for audio and video in JS is so bad that the
 official valid responses are "probably" and "maybe". There are many cases
 where we might want to know if an audio|video tag is gonna blow up in our
 face before even attempting to make a `MediaElementPlayer` instance out of
 it.

 The best (and most cautious) way to tackle this is to whitelist types by
 browser. Imagine that one implemented MEjs in TinyMCE's rich editor mode,
 this would be very helpful.

 Add `isCompatible( $media )` to `wp.media.mixin`. Future features will use
 this.

 See #27389.
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/27389#comment:15>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list