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.

Recommended Answers

All 4 Replies

I already try this youtube HTML5 codes:

<iframe class="youtube-player" type="text/html" width="640" height="385" src="http://www.youtube.com/watch?v=IVdGD3s-JdY" allowfullscreen frameborder="0"></iframe>

It still leave me with a blank white screen.

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.

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 :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.