<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1042629" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1042629</link>
    <description></description>
    <language>en</language>
          <item>
    <title>That&#039;s great Decibel, you</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/coding-click#comment-1236675</link>
    <description> &lt;p&gt;That&#039;s great Decibel, you have my gratitude and eternal respect&lt;/p&gt;
 </description>
     <pubDate>Fri, 02 Jan 2009 19:30:12 +0000</pubDate>
 <dc:creator>Nostradamus</dc:creator>
 <guid isPermaLink="false">comment 1236675 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>ok, here we go, based on the</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/coding-click#comment-1236661</link>
    <description> &lt;p&gt;ok, here we go, based on the demo &lt;a href=&quot;http://code.google.com/apis/youtube/js_example_1.html&quot;&gt;here&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&amp;lt;!DOCTYPE html PUBLIC &amp;quot;-//W3C//DTD XHTML 1.0 Strict//EN&amp;quot;&lt;br /&gt;	&amp;quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&amp;quot;&amp;gt;&lt;br /&gt;&amp;lt;html xmlns=&amp;quot;http://www.w3.org/1999/xhtml&amp;quot; xml:lang=&amp;quot;en&amp;quot; lang=&amp;quot;en&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;head&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;meta http-equiv=&amp;quot;Content-Type&amp;quot; content=&amp;quot;text/html; charset=utf-8&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;title&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; YouTube Javascript API Autostart&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/title&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;script src=&amp;quot;swfobject.js&amp;quot; type=&amp;quot;text/javascript&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;script type=&amp;quot;text/javascript&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; setTimeout(&amp;#039;myytplayer.playVideo()&amp;#039;,5000);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/script&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;/head&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;body&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;div&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;div id=&amp;quot;ytapiplayer&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; You need Flash player 8+ and JavaScript enabled to view this video.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/div&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;script type=&amp;quot;text/javascript&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // allowScriptAccess must be set to allow the Javascript from one domain to access the swf on the youtube domain&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var params = { allowScriptAccess: &amp;quot;always&amp;quot; };&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // this sets the id of the object or embed tag to &amp;#039;myytplayer&amp;#039;. You then use this id to access the swf and make calls to the player&amp;#039;s API&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var atts = { id: &amp;quot;myytplayer&amp;quot; };&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; swfobject.embedSWF(&amp;quot;http://www.youtube.com/v/OdqhDcAoQuc&amp;amp;amp;border=0&amp;amp;amp;enablejsapi=1&amp;amp;amp;playerapiid=ytplayer&amp;quot;, &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;quot;ytapiplayer&amp;quot;, &amp;quot;425&amp;quot;, &amp;quot;344&amp;quot;, &amp;quot;8&amp;quot;, null, null, params, atts);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/script&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;lt;/body&amp;gt;&lt;br /&gt;&amp;lt;/html&amp;gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;You need to&lt;/p&gt;
&lt;p&gt;1. &lt;a href=&quot;http://swfobject.googlecode.com/files/swfobject_2_1.zip&quot;&gt;Download SWFobject&lt;/a&gt;, not link to YouTube&#039;s&lt;/p&gt;
&lt;p&gt;2. Change &lt;code&gt;swfobject.embedSWF(&amp;quot;http://www.youtube.com/v/OdqhDcAoQuc&lt;/code&gt; to the URL of your video&lt;/p&gt;
&lt;p&gt;the &lt;strong&gt;setTimeout&lt;/strong&gt; is very important, it will not work without it - but you may be able to set the timer to less than 5000 milliseconds&lt;/p&gt;
 </description>
     <pubDate>Fri, 02 Jan 2009 04:04:16 +0000</pubDate>
 <dc:creator>decibel.places</dc:creator>
 <guid isPermaLink="false">comment 1236661 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>I think you are best off</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/coding-click#comment-1236651</link>
    <description> &lt;p&gt;I think you are best off using the &lt;a href=&quot;http://code.google.com/apis/youtube/js_api_reference.html&quot;&gt;YouTube API&lt;/a&gt; including SWFObject&lt;/p&gt;
&lt;p&gt;Be aware that you cannot test it on a local file, as there are security issues connecting your client computer to remote files - you need to upload your code somewhere to test it&lt;/p&gt;
&lt;p&gt;If/when I come up with a solution, I&#039;ll post it back here&lt;/p&gt;
 </description>
     <pubDate>Thu, 01 Jan 2009 23:28:47 +0000</pubDate>
 <dc:creator>decibel.places</dc:creator>
 <guid isPermaLink="false">comment 1236651 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>what about a Javascript</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/coding-click#comment-1236645</link>
    <description> &lt;p&gt;what about a Javascript like&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&amp;lt;script type=&amp;quot;text/javascript&amp;quot;&amp;gt;&lt;br /&gt;&amp;lt;!--&lt;br /&gt;function clickit() {&lt;br /&gt;document.getElementById(&amp;#039;idofflash&amp;#039;).click();&lt;br /&gt;}&lt;br /&gt;onload = clickit;&lt;br /&gt;}&lt;br /&gt;//--&amp;gt;&lt;br /&gt;&amp;lt;/script&amp;gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;where &quot;idofflash&quot; is the id=&quot;someid&quot; of the flash component you need to add&lt;/p&gt;
&lt;p&gt;I am not sure this will click an embedded YouTube flash video, however, I do believe that a click anywhere on the YouTube video will play it, it is not necessary to target the play button&lt;/p&gt;
&lt;p&gt;if this works, it has an advantage over webwiz&#039;s method because it will autoplay the video on document load (I believe that is your goal), not triggered by a click&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;[EDIT]&lt;/strong&gt; I have been testing this, but the only way I can get the embedded YouTube video to play automatically is the &lt;strong&gt;autoplay=1&lt;/strong&gt; parameter which will not be counted because it was abused...&lt;/p&gt;
 </description>
     <pubDate>Thu, 01 Jan 2009 22:54:21 +0000</pubDate>
 <dc:creator>decibel.places</dc:creator>
 <guid isPermaLink="false">comment 1236645 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>webwiz wrote:
Okay. I just</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/coding-click#comment-1236648</link>
    <description> &lt;p&gt;&lt;div class=&quot;quote-msg&quot;&gt;&lt;div class=&quot;quote-author&quot;&gt;&lt;em&gt;webwiz&lt;/em&gt; wrote:&lt;/div&gt;Okay. I just googled this. Check out this simple explanation:&lt;br /&gt;
&lt;a href=&quot;http://www.loganrenz.com/wordpress/?p=334&quot; title=&quot;http://www.loganrenz.com/wordpress/?p=334&quot;&gt;http://www.loganrenz.com/wordpress/?p=334&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Hope it helps.&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;Yes I am aware of both of these options Youtube gives you, but unfortunately Youtube does not count either od these actions as views.&lt;/p&gt;
&lt;p&gt;I am currently playing around with that Javascript as I think it&#039;s the best chance I have. Many thanks to you both for the wise words&lt;/p&gt;
 </description>
     <pubDate>Thu, 01 Jan 2009 22:36:17 +0000</pubDate>
 <dc:creator>Nostradamus</dc:creator>
 <guid isPermaLink="false">comment 1236648 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>Okay. I just googled this.</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/coding-click#comment-1236647</link>
    <description> &lt;p&gt;Okay. I just googled this. Check out this simple explanation:&lt;br /&gt;
&lt;a href=&quot;http://www.loganrenz.com/wordpress/?p=334&quot; title=&quot;http://www.loganrenz.com/wordpress/?p=334&quot;&gt;http://www.loganrenz.com/wordpress/?p=334&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Hope it helps.&lt;/p&gt;
 </description>
     <pubDate>Thu, 01 Jan 2009 22:31:53 +0000</pubDate>
 <dc:creator>webwiz</dc:creator>
 <guid isPermaLink="false">comment 1236647 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>Assuming you can initiate</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/coding-click#comment-1236644</link>
    <description> &lt;p&gt;Assuming you can initiate the &quot;play&quot; button with a script, you could take a leaf out of Sitepoint.com&#039;s web site. They have an &quot;onclick&quot; handler on the BODY element. A click anywhere on the page normally bubbles up - so they create a pop-up advert the first time a visitor clicks anywhere on the page. Perhaps you could adapt this to trigger the &quot;play&quot; button?&lt;/p&gt;
&lt;p&gt;I don&#039;t know about the YouTube API so can&#039;t be more specific. Sorry.&lt;/p&gt;
 </description>
     <pubDate>Thu, 01 Jan 2009 21:52:57 +0000</pubDate>
 <dc:creator>webwiz</dc:creator>
 <guid isPermaLink="false">comment 1236644 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
