[wp-trac] [WordPress Trac] #24764: Support mediaelement.js YouTube sources in the video shortcode

WordPress Trac noreply at wordpress.org
Mon Feb 10 13:02:28 UTC 2014


#24764: Support mediaelement.js YouTube sources in the video shortcode
-------------------------+-----------------------------
 Reporter:  jancbeck     |       Owner:  wonderboymusic
     Type:  enhancement  |      Status:  closed
 Priority:  normal       |   Milestone:  3.9
Component:  Embeds       |     Version:  3.6
 Severity:  normal       |  Resolution:  fixed
 Keywords:  has-patch    |     Focuses:
-------------------------+-----------------------------

Comment (by Fab1en):

 Hi @wonderboymusic. Would it be possible to enhance a bit this fix to make
 it possible to add other video providers ? You could introduce an array
 similar to this one :

 {{{
 $video_provider = array(
     'video/youtube' =>
 '#^https?://(:?www\.)?(:?youtube\.com/watch|youtu\.be/)#'
 );
 }}}

 and pass it to a filter so that plugin developers can add new providers.
 Then, they would just need to use a js video player that support those
 providers. For example, I [forked
 mediaelement.js](https://github.com/johndyer/mediaelement/pull/663) to
 make it support Dailymotion videos in the same way it supports YouTube
 ones.

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


More information about the wp-trac mailing list