[wp-trac] [WordPress Trac] #16663: YouTube oEmbed code invalid, therefore not showing mobile version.

WordPress Trac wp-trac at lists.automattic.com
Fri Feb 25 17:39:28 UTC 2011


#16663: YouTube oEmbed code invalid, therefore not showing mobile version.
--------------------------+-----------------------------
 Reporter:  hotforwords   |      Owner:  hotforwords
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Media         |    Version:  3.1
 Severity:  normal        |   Keywords:  needs-patch
--------------------------+-----------------------------
 The YouTube oEmbed code is giving incorrect code and as a result the
 mobile version of the resulting embed is not showing.

 The resulting Object that is embedded is putting in a '''/e/''' in the URL
 when it's supposed to be putting in a '''/v/'''

 For example, when I put the following URL into a post:

 {{{
 http://www.youtube.com/watch?v=H6m0EPQOKPw
 }}}

 the resulting current '''incorrect''' embed code created is:

 {{{
 <object width="655" height="398">
 <param name="movie"
 value="http://www.youtube.com/e/H6m0EPQOKPw"></param><param
 name="allowFullScreen" value="true"></param><param
 name="allowscriptaccess" value="always"></param><embed
 src="http://www.youtube.com/e/H6m0EPQOKPw" type="application/x-shockwave-
 flash" width="655" height="398" allowscriptaccess="always"
 allowfullscreen="true"></embed></object>
 }}}

 Note the '''/e/''' after the '''www.youtube.com''' that is repeated twice.

 {{{
 value="http://www.youtube.com/e/H6m0EPQOKPw"
 }}}

 The embed code should be:

 {{{
 <object width="655" height="398">
 <param name="movie"
 value="http://www.youtube.com/v/H6m0EPQOKPw"></param><param
 name="allowFullScreen" value="true"></param><param
 name="allowscriptaccess" value="always"></param><embed
 src="http://www.youtube.com/v/H6m0EPQOKPw" type="application/x-shockwave-
 flash" width="655" height="398" allowscriptaccess="always"
 allowfullscreen="true"></embed></object>
 }}}

 With '''/v/''' being inserted in the two URLs not '''/e/'''

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/16663>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list