Youtube is a video hosting platform. It conveniently stores videos and shares them with the world. However, what if we want to play YouTube videos on our website?
Youtube has an Embed Video feature that allows adding their videos on any website. Hosting videos on websites and managing them can get complicated. Hence, its better to first upload them on YouTube and then Embed on website.
Adding Youtube videos provide full features of the youtube video player. Google can easily monetize videos.
copy embed code
.If you want the video to be played automatically when the page loads, then use autoplay. Autoplay is a feature of Youtube that will start the video regardless of whether the user plays it or not.
The autoplay has two values:
autoplay=0
(default): The video will not play automatically when the player loads on the Web Browser.autoplay=1
: The video will play automatically when the player loads on the Web Browser.Note : Use the autoplay feature very responsibly as it can be very annoying to the visitor.
A Video loop is a feature of restarting the video from the beginning after it finishes.
THe loop has two values:
loop=0
(default): Once the video finishes, it will not restart automatically.loop=1
: The video will play in a loop forever.Youtube player controls can be manually turned on/off.
controls=0
: Youtube video player will not display any controls like play, pause and so on.controls=1
(default): All the controls will be displayed and accessible. List of color names supported by all browser »
List of character codes to display special character »
List of all language supported by all browser »
List of Country code supported by all browser »