Difference between revisions of "YouTube notes"

From Noah.org
Jump to navigationJump to search
Line 11: Line 11:
 
&nbsp;&nbsp;&nbsp;&nbsp;type="application/x-shockwave-flash" </nowiki><br /><nowiki>
 
&nbsp;&nbsp;&nbsp;&nbsp;type="application/x-shockwave-flash" </nowiki><br /><nowiki>
 
&nbsp;&nbsp;&nbsp;&nbsp;style="width:425px; height:350px;" </nowiki><br /><nowiki>
 
&nbsp;&nbsp;&nbsp;&nbsp;style="width:425px; height:350px;" </nowiki><br /><nowiki>
 +
    data="http://www.youtube.com/v/3rW74KU5Q4w&fs=1&border=0&ap=%2526fmt%3D18" >
 +
        <param name="movie" value="http://www.youtube.com/v/3rW74KU5Q4w&fs=1&border=0&</nowiki><span style="color:blue">&ap=%2526fmt%3D18</span><nowiki>" > </nowiki><br /><nowiki>
 +
        <param name="wmode" value="opaque" />
 +
        <param name="autoplay" value="0" />
 +
        <param name="loop" value="0" />
 +
        <param name="egm" value="1" />
 
&nbsp;&nbsp;&nbsp;&nbsp;data="http://www.youtube.com/v/3rW74KU5Q4w&hl=en&fs=1</nowiki><span style="color:blue">&ap=%2526fmt%3D18</span><nowiki>" > </nowiki><br /><nowiki>
 
&nbsp;&nbsp;&nbsp;&nbsp;data="http://www.youtube.com/v/3rW74KU5Q4w&hl=en&fs=1</nowiki><span style="color:blue">&ap=%2526fmt%3D18</span><nowiki>" > </nowiki><br /><nowiki>
 
&nbsp;&nbsp;&nbsp;&nbsp;<param name="movie" value="http://www.youtube.com/v/3rW74KU5Q4w&hl=en&fs=1</nowiki><span style="color:blue">&ap=%2526fmt%3D18</span><nowiki>" /> </nowiki><br /><nowiki>
 
&nbsp;&nbsp;&nbsp;&nbsp;<param name="movie" value="http://www.youtube.com/v/3rW74KU5Q4w&hl=en&fs=1</nowiki><span style="color:blue">&ap=%2526fmt%3D18</span><nowiki>" /> </nowiki><br /><nowiki>
Line 17: Line 23:
 
&nbsp;&nbsp;&nbsp;&nbsp;<param name="wmode" value="transparent" /> </nowiki><br /><nowiki>
 
&nbsp;&nbsp;&nbsp;&nbsp;<param name="wmode" value="transparent" /> </nowiki><br /><nowiki>
 
</object>
 
</object>
 +
 +
<object  </nowiki><br /><nowiki>
 +
&nbsp;&nbsp;&nbsp;&nbsp;type="application/x-shockwave-flash" </nowiki><br /><nowiki>
 +
&nbsp;&nbsp;&nbsp;&nbsp;style="width:640px; height:505px;"  </nowiki><br /><nowiki>
 +
&nbsp;&nbsp;&nbsp;&nbsp;data="http://www.youtube.com/v/3rW74KU5Q4w&fs=1&border=0</nowiki><span style="color:blue">&ap=%2526fmt%3D18</span><nowiki>" > </nowiki><br /><nowiki>
 +
&nbsp;&nbsp;&nbsp;&nbsp;<param name="movie" value="http://www.youtube.com/v/3rW74KU5Q4w&fs=1&border=0</nowiki><span style="color:blue">&ap=%2526fmt%3D18</span><nowiki>" > </nowiki><br /><nowiki>
 +
&nbsp;&nbsp;&nbsp;&nbsp;<param name="wmode" value="opaque" /> </nowiki><br /><nowiki>
 +
&nbsp;&nbsp;&nbsp;&nbsp;<param name="autoplay" value="0" /> </nowiki><br /><nowiki>
 +
&nbsp;&nbsp;&nbsp;&nbsp;<param name="loop" value="0" /> </nowiki><br /><nowiki>
 +
&nbsp;&nbsp;&nbsp;&nbsp;<param name="egm" value="1" /> </nowiki><br /><nowiki>
 +
</object>
 +
 
</nowiki>
 
</nowiki>
  

Revision as of 16:34, 25 January 2009


Link directly to High Quality YouTube video

By default, URLs to YouTube videos open up in Normal Quality, but you can easily link directly to the High Quality version by adding the following to the end of a YouTube URL: &fmt=18 For example, http://www.youtube.com/watch?v=3rW74KU5Q4w becomes http://www.youtube.com/watch?v=3rW74KU5Q4w&fmt=18.

If you are using the embedded player on your site, you can tell it to use High Quality MP4 instead of the default Normal Quality. In the chunk of HTML that YouTube gives you for embedding the video URL will appear in two places. In both copies of the URL you must add the following to the end of the URL: &ap=%2526fmt%3D18. Use &fmt=22 if the video is 720p high def.

<object
    type="application/x-shockwave-flash"
    style="width:425px; height:350px;"
data="http://www.youtube.com/v/3rW74KU5Q4w&fs=1&border=0&ap=%2526fmt%3D18" > <param name="movie" value="http://www.youtube.com/v/3rW74KU5Q4w&fs=1&border=0&&ap=%2526fmt%3D18" >
<param name="wmode" value="opaque" /> <param name="autoplay" value="0" /> <param name="loop" value="0" /> <param name="egm" value="1" />     data="http://www.youtube.com/v/3rW74KU5Q4w&hl=en&fs=1&ap=%2526fmt%3D18" >
    <param name="movie" value="http://www.youtube.com/v/3rW74KU5Q4w&hl=en&fs=1&ap=%2526fmt%3D18" />
    <param name="allowFullScreen" value="true" />
    <param name="allowscriptaccess" value="always" />
    <param name="wmode" value="transparent" />
</object> <object
    type="application/x-shockwave-flash"
    style="width:640px; height:505px;"
    data="http://www.youtube.com/v/3rW74KU5Q4w&fs=1&border=0&ap=%2526fmt%3D18" >
    <param name="movie" value="http://www.youtube.com/v/3rW74KU5Q4w&fs=1&border=0&ap=%2526fmt%3D18" >
    <param name="wmode" value="opaque" />
    <param name="autoplay" value="0" />
    <param name="loop" value="0" />
    <param name="egm" value="1" />
</object>

URL Encode the fmt parameter: &fmt=18 => %26fmt=18 => %2526fmt%3D18

<html> <object

   type="application/x-shockwave-flash"
   style="width:640px; height:505px;" 
   data="http://www.youtube.com/v/3rW74KU5Q4w&fs=1&border=0&ap=%2526fmt%3D18" >
       <param name="movie" value="http://www.youtube.com/v/3rW74KU5Q4w&fs=1&border=0&ap=%2526fmt%3D18" />
       <param name="wmode" value="opaque" />
       <param name="autoplay" value="0" />
       <param name="loop" value="0" />
       <param name="egm" value="1" />

</object> </html>

Note that some parameters much be in the query string not in the object param list. For example, the full-screen option <param name="allowFullScreen" value="true" /> appears to be useless; you must have &fs=1 in the query strings.

Link to a specific time in a YouTube video

Add the following to the end of a YouTube URL. Note that this is a # aref target, not an & query string parameter. Replace 0m with the start time in minutes and 0s with the start time in seconds.

#t=0m0s

For example, this starts the video 13 seconds into the stream: http://www.youtube.com/watch?v=3rW74KU5Q4w&fmt=18#t=0m13s