Following examples demonstrate YouTube playback customization technique by adding web query parameters to the video URL (i.e. the links to YouTube video items).
Setting the video playback starting point
Setting the video playback starting point by specifying the offset-time in minutes and seconds from the beginning of video clip (in this example, it is set to 1min:10 sec, which will force the player to start the sample car video at "German Cars" fragment):
where parameter "
NGRgHj9hsqw" represents the actual video item
ID in YouTube classification system; this is the mandatory part of YouTube URL string. Parameter
&t=1m10s specifies the video playback starting point. Alternatively, it could be coded in the following format:
Shortening video URL
Entire URL with added web query could be shortened by using, for example, Bit.ly service and look like: http://bit.ly/CarGer[^]); all customization options will be preserved in the short URL.
Full Screen Mode
Playback in a Full Screen mode: http://www.youtube.com/v/NGRgHj9hsqw[^], where
NGRgHj9hsqw represents the video id.
Playback Autoplay option in a full-screen mode is set to "OFF" by default. In order to turn it "ON", add the parameter "
&autoplay=1" to the end of the URL web query.
Playback Loop (number of video re-plays) could be specified by adding the following parameter: “&loop=2” to the end of the query to play the video twice or “&loop=3” to replay it three times and so on.
Related Videos option On/Off
Turn “OFF” the "Related Video" option to filter-off "extras" from the video port by adding “&rel=0” to the end of the web query.
Embedded YouTube Player (click on image to open DEMO)