Umair
Umair

Reputation: 75

My youtube embed code doesn't work on html website

   <center>
  <iframe width="420" height="315" src="//www.youtube.com/embed/BrI7VRfqgo4" frameborder="0" allowfullscreen></iframe>


I know its been posted around, but nothing's been working for me at the moment. I have HTML website and trying to put the html video youtube embed code, but its not working for me. My site is online, very simple html.. And it has http in the video embed code as well.. I tried a lot, but cant get it working in any way.

Regards

Upvotes: 0

Views: 26320

Answers (3)

Gino
Gino

Reputation: 1

I don'tknow it it can be of any help. I needed just the audio, so I changed height to "0" and width to"0" and it works on IE and Firefox. It doesn't work with Chrome and Opera. Here the simple link. Just insert it as it is. I inserted it at the bottom of the page before

or go to my age and see if how it works: https://www.carniaexpress.com/friuli-per-gruppi/raduno-alpini-triveneto-tolmezzo If you wish to see the video just change height and width...

Upvotes: 0

user6378612
user6378612

Reputation: 11

<p align="left">
  <object height="385" width="640">
    <embed src="http://www.youtube.com/v/LsEU_93SC4c&rel=0?fs=1&amp;hl=en_US" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" height="385" width="640">
  </object>
</p>

Change the third line to your video number/name.

Upvotes: 0

Max Worg
Max Worg

Reputation: 2972

You have to enable embedding first before the embed code will work from other websites.

  • Log in to https://www.youtube.com/my_videos?o=U
  • Click Edit on the video you want to embed
  • Click on Advanced Settings in the tab below
  • Click Allow Embedding to enable it under the Distribution options section.
  • Click Save Changes to save the new configuration.
  • Now your embed link is ready to be embedded on other websites!

Upvotes: 4

Related Questions