spacevillain (spacevillain) wrote in changelog,
spacevillain
spacevillain
changelog

[livejournal] r22942: LJSUP-13449: I can't see video after sha...

Committer: atyurin
LJSUP-13449: I can't see video after sharing from youtube to lj (old update.bml& new update.bml on Beta)
U   trunk/htdocs/update.bml
Modified: trunk/htdocs/update.bml
===================================================================
--- trunk/htdocs/update.bml	2012-09-20 12:03:35 UTC (rev 22941)
+++ trunk/htdocs/update.bml	2012-09-20 13:34:37 UTC (rev 22942)
@@ -182,8 +182,8 @@
         ## in future support for other quick embeds will be added.
         ## TODO: use oEmbed for YouTube (http://apiblog.youtube.com/2009/10/oembed-support.html)
         if ($url =~ m!http://www.youtube.com/watch\?v=([\w\-]+)! || $url =~ m!http://www.youtube.com/v/([\w\-]+)!) {
-            $event .= <<"EMBED";
-<object width="640" height="385"><param name="movie" value="http://www.youtube.com/v/$1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/$1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="640" height="385"></embed></object>
+            $event = <<"EMBED";
+<iframe width="490" height="370" src="http://www.youtube.com/embed/$1" frameborder="0" allowfullscreen="allowfullscreen" data-link="http://www.youtube.com/watch?v=$1"></iframe>
 EMBED
         }
     }

Tags: atyurin, bml, livejournal, spacevillain
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments