We can embed youtube video using iframe tag and also can use various attributes. We can use these attributes for different purposes like hide or show video title, automatically play a video or many more.
The following tag will embed our youtube video:
“0″ is used to remove the info of the video and “1″ is bydefault.
The ‘rel’ tag is used to show the related videos after the end og the video. The “0″ will prevent the videos from shown and “1″ is by default allow for shown relative videos. The tag is used like this –
Auto hide has three values, “2″ is the default and progrees bar fade out when controls remaining visible, “1″ which hides the progress bar and controls after few seconds and “0″ will shows progress bar and controls always.
This parameter specifies the time, measured in seconds from the start of the video, when the player should stop playing the video.
The time is measured from the beginning of the video and not from either the value of the start player parameter or the startSeconds parameter, which is used in YouTube Player API functions for loading or queueing a video. We can pass positive integer values in its parameter where the video should stop.
This will stop the video <iframe width=”640″ height=”480″
end=5″ frameborder=”0″ allowfullscreen></iframe>
after 5 seconds.
This parameter indicates that the embedded player will display player controls (like a play button or volume control) within a dark or light control bar. Valid parameter values are dark and light and by default, the player will display player controls using the dark theme.
In this tag 0 or 1 values can be passed. Default is 0. In the case of a single video player, a setting of 1 will cause the player to play the initial video again and again. In the case of a playlist player (or custom player), the player will play the entire playlist and then start again at the first video.
This parameter lets you use a YouTube player that does not show a YouTube logo. Set the parameter value to 1 to prevent the YouTube logo from displaying in the control bar. Note that a small YouTube text label will still display in the upper-right corner of a paused video when the user’s mouse pointer hovers over the player.