<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" 
      xmlns:thr="http://purl.org/syndication/thread/1.0">
  <link rel="alternate" type="text/html" href="http://www.insideria.com/2009/02/introducing-tubeloc-as3flex-yo.html" />
  <link rel="self" type="application/atom+xml" href="http://www.insideria.com/atom.xml" />
  <id>tag:www.insideria.com,2009://34/tag:www.insideria.com,2009://34.35295-</id>
  <updated>2009-11-16T15:15:43Z</updated>
  <title>Comments for Introducing TubeLoc: AS3/Flex YouTube Player API (http://www.insideria.com/2009/02/introducing-tubeloc-as3flex-yo.html)</title>
  <generator uri="http://www.sixapart.com/movabletype/">Movable Type 4.21-en</generator>
  <entry>
    <id>tag:www.insideria.com,2009://34.35295</id>
    <link rel="alternate" type="text/html" href="http://www.insideria.com/2009/02/introducing-tubeloc-as3flex-yo.html" />
    <link rel="service.edit" type="application/atom+xml" href="http://blogs.oreilly.com/cgi-bin/mt/mt-atom.cgi/weblog/blog_id=34/entry_id=35295" title="Introducing TubeLoc: AS3/Flex YouTube Player API" />
    <published>2009-02-12T15:30:00Z</published>
    <updated>2009-02-12T14:31:26Z</updated>
    <title>Introducing TubeLoc: AS3/Flex YouTube Player API</title>
    <summary>Almost a year ago the YouTube APIs and Tools team released the YouTube Player API. The SWF that exposed the player functionality was and still is written in ActionScript 2. To make this easier to use in ActionScript 3, there...</summary>
    <author>
      <name>Ben Longoria</name>
      
    </author>
    
    <category term="Blogs" />
    
    <content type="html" xml:lang="en" xml:base="http://www.insideria.com/">
      <![CDATA[<p>Almost a year ago the <a href="http://apiblog.youtube.com/">YouTube APIs and Tools team</a> released the <a href="http://code.google.com/apis/youtube/flash_api_reference.html">YouTube Player API</a>. The SWF that exposed the player functionality was and still is written in ActionScript 2.
To make this easier to use in ActionScript 3, there have been a few projects along the way.
They have either seemed to be a little bit too complicated, or have ignored Flex, Flash, the chromeless player, or the full-chrome player.</p>

<p>We all would like a native ActionScript 3 Player API. So I figured that If I wrote a AS3/Flex proxy library for the AS2 YouTube Player API, surely then and only then would the AS3 native player come out. Of course, right? :) We'll see. In the meantime we have <a href="http://code.google.com/p/tubeloc/">TubeLoc</a>.</p>

<p>Here are the details:
<ul>
	<li>Easily use the YouTube Player API in your Flex/AS3 projects</li>
	<li>Includes a Flex component and a Sprite-based ActionScript 3 class</li>
	<li>Can use YouTube's chromeless player or full-chrome player</li>

<p>	<li>Uses LocalConnection</li><br />
	<li>ActionScript 2 SWF built using <a href="http://www.mtasc.org/">MTASC</a></li><br />
</ul><br />
</p></p>

<p>A couple members of the YouTube team helped out a lot with feedback and review, so a big thanks goes out to Jeff and Phil. To get more information you can check out the <a href="http://apiblog.youtube.com/2009/02/tubeloc-as3-player-wrapper-using.html">YouTube API announcement</a>, <a href="http://code.google.com/apis/youtube/articles/tubeloc.html">read the article</a> on how to use the library, and of course visit the <a href="http://code.google.com/p/tubeloc/">Google Code project page</a>.
There is still room for improvement, so feel free to <a href="http://code.google.com/p/tubeloc/issues/list">report any issues</a> on the Google Code project.]]>
      
    </content>
  </entry>

  <entry>
    <id>tag:www.insideria.com,2009://34.35295-comment:2053150</id>
    <thr:in-reply-to ref="tag:www.insideria.com,2009://34.35295" type="text/html" href="http://www.insideria.com/2009/02/introducing-tubeloc-as3flex-yo.html"/>
    <link rel="alternate" type="text/html" href="http://www.insideria.com/2009/02/introducing-tubeloc-as3flex-yo.html#comment-2053150" />
    <title>Comment from Damon Edwards on 2009-02-12</title>
    <author>
        <name>Damon Edwards</name>
        <uri>http://thedesktube.com</uri>
    </author>
    <content type="html" xml:lang="en" xml:base="http://thedesktube.com">
        <![CDATA[<p>Hi Ben,<br />
Can you please email me at admin[-at-]thedesktube[-dot-]com.<br />
Thanks,<br />
Damon</p>]]>
    </content>
    <published>2009-02-12T15:44:43Z</published>
  </entry>

  <entry>
    <id>tag:www.insideria.com,2009://34.35295-comment:2053622</id>
    <thr:in-reply-to ref="tag:www.insideria.com,2009://34.35295" type="text/html" href="http://www.insideria.com/2009/02/introducing-tubeloc-as3flex-yo.html"/>
    <link rel="alternate" type="text/html" href="http://www.insideria.com/2009/02/introducing-tubeloc-as3flex-yo.html#comment-2053622" />
    <title>Comment from James Tindall on 2009-02-19</title>
    <author>
        <name>James Tindall</name>
        <uri>http://jamestindall.info/</uri>
    </author>
    <content type="html" xml:lang="en" xml:base="http://jamestindall.info/">
        <![CDATA[<p>Hi Ben,</p>

<p>Do you know any more about why it's not possible to have more than one instance of the player on the stage at once? Getting round this would enable me to redo <a href="http://passingby.tv/">http://passingby.tv/</a> without having to pipe the videos through my own server.</p>

<p>james</p>]]>
    </content>
    <published>2009-02-19T12:37:20Z</published>
  </entry>

  <entry>
    <id>tag:www.insideria.com,2009://34.35295-comment:2054192</id>
    <thr:in-reply-to ref="tag:www.insideria.com,2009://34.35295" type="text/html" href="http://www.insideria.com/2009/02/introducing-tubeloc-as3flex-yo.html"/>
    <link rel="alternate" type="text/html" href="http://www.insideria.com/2009/02/introducing-tubeloc-as3flex-yo.html#comment-2054192" />
    <title>Comment from Ben Longoria on 2009-02-27</title>
    <author>
        <name>Ben Longoria</name>
        <uri></uri>
    </author>
    <content type="html" xml:lang="en" xml:base="">
        <![CDATA[<p>Hello James,</p>

<p>From what I understand, there are some low-level issues with the YouTube player itself. This may have been fixed, or fixed with some work-arounds. </p>

<p>I'm trying to find the time to look into this and see if I can get it working. Follow the Google Code project for any updates.</p>]]>
    </content>
    <published>2009-02-27T10:55:45Z</published>
  </entry>

  <entry>
    <id>tag:www.insideria.com,2009://34.35295-comment:2056817</id>
    <thr:in-reply-to ref="tag:www.insideria.com,2009://34.35295" type="text/html" href="http://www.insideria.com/2009/02/introducing-tubeloc-as3flex-yo.html"/>
    <link rel="alternate" type="text/html" href="http://www.insideria.com/2009/02/introducing-tubeloc-as3flex-yo.html#comment-2056817" />
    <title>Comment from Elisheva on 2009-03-30</title>
    <author>
        <name>Elisheva</name>
        <uri></uri>
    </author>
    <content type="html" xml:lang="en" xml:base="">
        <![CDATA[<p>Playing in more than one location inside a flex app</p>

<p>I want to use TubeLoc to play youtube videos from my flex-app. How ever, I have several locations (mxml files) where I need to place the<br />
 tag.</p>

<p>It plays from the first spot the user reaches, but not from the following ones. I see that there is a new localconnection created for each , still I get the error of "already connected" when the line number 159 in MovieSprite.as is run:</p>

<p>receivingConnection.connect(as3Id);</p>

<p>Is there a way to overcome this ?.</p>

<p>Thanks</p>

<p>Elisheva</p>

<p><br />
</p>]]>
    </content>
    <published>2009-03-31T06:44:52Z</published>
  </entry>

  <entry>
    <id>tag:www.insideria.com,2009://34.35295-comment:2058892</id>
    <thr:in-reply-to ref="tag:www.insideria.com,2009://34.35295" type="text/html" href="http://www.insideria.com/2009/02/introducing-tubeloc-as3flex-yo.html"/>
    <link rel="alternate" type="text/html" href="http://www.insideria.com/2009/02/introducing-tubeloc-as3flex-yo.html#comment-2058892" />
    <title>Comment from Leslie Bertels on 2009-05-05</title>
    <author>
        <name>Leslie Bertels</name>
        <uri></uri>
    </author>
    <content type="html" xml:lang="en" xml:base="">
        <![CDATA[<p>Hi.</p>

<p>I'm using tubeloc in my AIR app to show the chromeless youtube player. It works but a huge number of security sandbox violation errors are thrown constantly!<br />
Any ideas?<br />
I've tried to add the allowdomain("*") but air apps do not allow to do this :(</p>

<p>here the error:</p>

<p>*** Security Sandbox Violation ***<br />
SecurityDomain 'http://www.youtube.com/swf/cl.swf?eurl=app%3A/as2_tubeloc.swf%3Fas3Id%3Das3Id_12415076817010%26as2Id%3Das2Id_12415076817021%26as3Listener%3DonLocalConnectionEvent%26pl&sk=jQsY3zE0d-7RPFSSh-LphK4BCDcUMc-YC' tried to access incompatible context 'app:/as2_tubeloc.swf?as3Id=as3Id_12415076817010&as2Id=as2Id_12415076817021&as3Listener=onLocalConnectionEvent&playerAPIUrl=http%3A//www.youtube.com/apiplayer'</p>

<p><br />
Thanks,<br />
Les.</p>]]>
    </content>
    <published>2009-05-05T07:15:38Z</published>
  </entry>

  <entry>
    <id>tag:www.insideria.com,2009://34.35295-comment:2059482</id>
    <thr:in-reply-to ref="tag:www.insideria.com,2009://34.35295" type="text/html" href="http://www.insideria.com/2009/02/introducing-tubeloc-as3flex-yo.html"/>
    <link rel="alternate" type="text/html" href="http://www.insideria.com/2009/02/introducing-tubeloc-as3flex-yo.html#comment-2059482" />
    <title>Comment from Jigar Patel on 2009-05-12</title>
    <author>
        <name>Jigar Patel</name>
        <uri></uri>
    </author>
    <content type="html" xml:lang="en" xml:base="">
        <![CDATA[<p>Ben, First great job on this component.  It really saved me a lot of time in my personal project.</p>

<p>My question, I think has to do with the as2_tubeloc.swf file.  I have the need to call the YouTube video from a php proxy script.  I get the error below, when I play the video straight from YouTube.</p>

<p>I was wondering if the YouTube request is made in the as2_tubeloc.swf file, if so, do you have any ideas how I could call the url from a php proxy script on my server, so I can add a cross domain policy file and serve it to my webpage, and not get the error below?</p>

<p>ERROR MSG below:  I masked the website url with localhost.</p>

<p>SecurityError: Error #2121: Security sandbox violation: BitmapData.draw: <a href="http://localhost/CreateMagazine.swf">http://localhost/CreateMagazine.swf</a> cannot access <a href="http://s.ytimg.com/yt/swf/cps-vfl96213.swf.">http://s.ytimg.com/yt/swf/cps-vfl96213.swf.</a> This may be worked around by calling Security.allowDomain.</p>

<p>So, instead of calling "http://s.ytimg.com/yt/swf/cps-vfl96213.swf" directly, I would like to call "http://localhost/proxy.php?file=http://s.ytimg.com/yt/swf/cps-vfl96213.swf".  This way my proxy script can serve up the video, instead of YouTube allowing me to do some manipulation I need to do.</p>

<p>Any help on this would be greatly appreciated.  If you need more information of a link to the site to see the error yourself, please let me know.</p>

<p>Thanks,<br />
Jigar</p>]]>
    </content>
    <published>2009-05-13T03:03:52Z</published>
  </entry>

  <entry>
    <id>tag:www.insideria.com,2009://34.35295-comment:2060020</id>
    <thr:in-reply-to ref="tag:www.insideria.com,2009://34.35295" type="text/html" href="http://www.insideria.com/2009/02/introducing-tubeloc-as3flex-yo.html"/>
    <link rel="alternate" type="text/html" href="http://www.insideria.com/2009/02/introducing-tubeloc-as3flex-yo.html#comment-2060020" />
    <title>Comment from Jigar Patel on 2009-05-20</title>
    <author>
        <name>Jigar Patel</name>
        <uri></uri>
    </author>
    <content type="html" xml:lang="en" xml:base="">
        <![CDATA[<p>Hi Ben, I have not heard anything regarding my previous question.  I may have missed an email or you might just be too busy.  Please let me know if I should try other avenues to resolve my issue/question.</p>

<p>Thanks,<br />
Jigar</p>]]>
    </content>
    <published>2009-05-20T19:02:34Z</published>
  </entry>

  <entry>
    <id>tag:www.insideria.com,2009://34.35295-comment:2067234</id>
    <thr:in-reply-to ref="tag:www.insideria.com,2009://34.35295" type="text/html" href="http://www.insideria.com/2009/02/introducing-tubeloc-as3flex-yo.html"/>
    <link rel="alternate" type="text/html" href="http://www.insideria.com/2009/02/introducing-tubeloc-as3flex-yo.html#comment-2067234" />
    <title>Comment from Igor Kurochka on 2009-06-26</title>
    <author>
        <name>Igor Kurochka</name>
        <uri></uri>
    </author>
    <content type="html" xml:lang="en" xml:base="">
        <![CDATA[<p>Hi, Ben!<br />
there is a problem with tubeLoc when main swf and your as_tubeloc.as wrapper are on the different domains - main swf receives the calls but wrapper is not.<br />
there is opened issue #12 here <a href="http://code.google.com/p/tubeloc/issues/detail?id=12&can=1#makechanges">http://code.google.com/p/tubeloc/issues/detail?id=12&can=1#makechanges</a></p>

<p>Please, help solve this problem!!!!</p>]]>
    </content>
    <published>2009-06-26T11:03:04Z</published>
  </entry>

  <entry>
    <id>tag:www.insideria.com,2009://34.35295-comment:2067466</id>
    <thr:in-reply-to ref="tag:www.insideria.com,2009://34.35295" type="text/html" href="http://www.insideria.com/2009/02/introducing-tubeloc-as3flex-yo.html"/>
    <link rel="alternate" type="text/html" href="http://www.insideria.com/2009/02/introducing-tubeloc-as3flex-yo.html#comment-2067466" />
    <title>Comment from Ahmed Nuaman on 2009-06-30</title>
    <author>
        <name>Ahmed Nuaman</name>
        <uri>http://www.ahmednuaman.com</uri>
    </author>
    <content type="html" xml:lang="en" xml:base="http://www.ahmednuaman.com">
        <![CDATA[<p>Hey,</p>

<p>TubeLoc is good, but there are little issues with it. So I wrote a tut about how to create your own AS3 wrapper for YouTube Player for both the chromed and chromeless players: <a href="http://ahmednuaman.com/blog/2009/06/29/the-youtube-player-api/">http://ahmednuaman.com/blog/2009/06/29/the-youtube-player-api/</a></p>

<p>Tell me if it's handy.</p>]]>
    </content>
    <published>2009-06-30T10:11:02Z</published>
  </entry>

</feed
