0

Hello,

I have been looking for youtube HTML5 player codes:

I use this standard HTML codes for youtube that I thought it's going to work, but it doesn't:

<object width="420" height="315" data="http://www.youtube.com/watch?v=IVdGD3s-JdY">
</object>

I only see a blank white screen with that codes. Then, I thought perhaps because I am using HTML5 HTML tag: <!doctype html>

I haven't find the correct code for youtube HTML5 codes.

Please help. Thanks before.

4
Contributors
4
Replies
19
Views
2 Years
Discussion Span
Last Post by gabrielcastillo
0

I think that the syntax you've used is slightly incorrect.
If you go to the video in question and click on the share button, you will see the proper syntax to use as an object.

0

Hola,

Below is the embed code for the video you are trying to embed:

<iframe width="420" height="315" src="//www.youtube.com/embed/IVdGD3s-JdY" frameborder="0" allowfullscreen></iframe>

You can adjust the width & height by:

step 1) Click on the share button below the video and then click on embed & click on "show more" Adjust your parameters and copy the code :)

Let us know if you need any other help

Update: For object code: once you are in step 1, you will see a checkbox that says "Use old embed code" That should give you the <object> code :)

Edited by mavensays: Update

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.