Embedding YouTube videos in your web page: part 2 – beyond the basics
Part 2 of a 2-part series looking at some of the options that give you a degree of control over how your embedded video appears on the page and how it behaves. Part 2 looks at reducing the amount of YouTube branding and making the video play automatically.
If you are a Noisegate CMS client you have a feature that manages video embedding for you and you can read more about that in Steve’s post How to embed YouTube or Vimeo videos using the Noisegate CMS.
Having covered the basic options in part 1, here I take a look at some of the more advanced options.
Specifically, we are going to edit the YouTube HTML code to add in various parameters in order to
- Minimise the YouTube branding that appears on your embedded video
- Get your video to start playing automatically when the web page is loaded
- Get your video to start playing part way through the video and to stop at a certain point – so that you can play just a short section of it
Remember, the embedding works by copying YouTube HTML code into your web page HTML code. This means you need access to your website HTML code – usually through your CMS. If you do not have access to your website code, you will have to ask your web developer to carry out this part of the process for you.