When I try to embed the top video, it gives a Playback error. I feel like if it were expected behavior it would at least give a nice message explaining why . Am I doing something wrong with my code?
Bottom video works, top doesn't.
https://jsfiddle.net/ks1xhbd3/1/
<iframe width="560" height="315" src="https://www.youtube.com/embed/AHOQ5Ge0l5Easd" frameborder="0" allowfullscreen></iframe>
<iframe width="560" height="315" src="https://www.youtube.com/embed/lWz-46NPqdk" frameborder="0" allowfullscreen></iframe>
The video ID is wrong - remove the 'asd' from it, it doesn't belong there and you definitely typed it in accidentally.
Related
<iframe width="640" height="390" src="//www.youtube.com/watch?v=rf-ZbfUTVO0" ></iframe>
i did like this but is is not working. I tried this many time but still not working.
Well, if you want to embed any youtube video then you can click on the share button of Youtube, there you'll find the embed code just like below. I did this and it's working for me.
<iframe width="560" height="315" src="https://www.youtube.com/embed/rf-ZbfUTVO0" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
I am using the tag and some youtube videos show up but the specific video I want isn't in the correct format.
This is the tag with a random video (is working).
<iframe width="420" height="315"
src="https://www.youtube.com/embed/XGSy3_Czz8k">
</iframe>
This is with the video I want (not working).
<iframe width="420" height="315"
src="https://www.youtube.com/watch?v=9fJEFi3ccwI">
</iframe>
Can someone please help me reformat?
I wonder if you simply mean re-format the video URL?
Try as :
<iframe width="420" height="315"
src="https://www.youtube.com/embed/9fJEFi3ccwI">
</iframe>
Let me know if this works how you wanted?
.Why won't my video play? Before, when I was using a tag, the video would show "no video with supported format and MIME type found". When I use the <iframe> tag it shows a blank square.Here is the code...
<iframe width="420" height="315" src="https://youtu.be/0vwNEc-lL2c" controls></iframe>
...and here is what the site shows...
Any help greatly appreciated!
NW
What happens if you add the code provided by youtube itself?
<iframe width="560" height="315" src="https://www.youtube.com/embed/0vwNEc-lL2c" frameborder="0" allowfullscreen></iframe>
Can someone help me with this code? The YouTube video isn't showing up at all.
<iframe width="420" height="315" src="https://www.youtube.com/embed/XGSy3_Czz8k"> </iframe>
Can you try this:
<iframe src="https://www.youtube.com/embed/XGSy3_Czz8k" width="420" height="315" frameborder="0" allowfullscreen></iframe>
There may be some other issue eg. server policy etc. can you provide any other info
I have youtube video on page:
<iframe id='youtubeTrailer' width="560" height="315" src="//www.youtube.com/embed/0Vsy5KzsieQ" frameborder="0" allowfullscreen></iframe>
and some poster. I wrote index for img greater than for video. but it's still does not work. How can I fix it?
That's because flash mostly ignores z-index (unless wmode is set to opaque). You can follow the steps detailed here to correct it.
What the guide above details is just setting the wmode to transparent by modifying the iframe code.
<iframe id='youtubeTrailer' width="560" height="315" src="//www.youtube.com/embed/0Vsy5KzsieQ?wmode=transparent" frameborder="0" allowfullscreen></iframe>