Hi Guys
A friend of mine once said there was a website where you can paste the embed code from youtube and it will give you an alternate embed code that validates.
I have been searching for the site .. but I can not find it anywhere.
I'd greatly appreciate a link.
Thank You.
Page 1 of 1
Validating YouTube Embed
#2
Posted 04 January 2010 - 07:29 PM
It's the embed tag in normal codes for video .swf files in a web page like YouTube uses that doesn't validate.
You can use just an object tag like item 2 here
http://www.wickham43.../flashvideo.php
and this does validate but it won't work unless a computer has Adobe Flash Player already installed. This used to be a problem, but new computers nearly all do have Flash Player pre-installed.
The normal method with an object tag and nested embed tag works on old computers but doesn't validate.
You can use just an object tag like item 2 here
http://www.wickham43.../flashvideo.php
and this does validate but it won't work unless a computer has Adobe Flash Player already installed. This used to be a problem, but new computers nearly all do have Flash Player pre-installed.
The normal method with an object tag and nested embed tag works on old computers but doesn't validate.
#3
Posted 04 January 2010 - 10:02 PM
Thanks Wickham
So no site ?
also where does the URL of the youtube video go ?
Thanks
So no site ?
also where does the URL of the youtube video go ?
<div style="width: 500px; margin: auto;"> <object type="application/x-shockwave-flash" style="width: 120px; height: 100px; margin: auto;" id="VideoPlayer" data="yourvideo.swf"> <param name="allowScriptAccess" value="sameDomain" > <param name="movie" value="yourvideo.swf" > <param name="quality" value="high" > <param name="scale" value="noscale" > <param name="bgcolor" value="#ababab" > <p><a href="http://www.adobe.com/go/getflashplayer">Install Adobe Flash For Richer Experience</a></p> </object> </div>
Thanks
#4
Posted 04 January 2010 - 10:37 PM
Use the code below. Replace the data, value, width and height properties with your YouTube URL, width and height.
Hope this helps.
<object type="application/x-shockwave-flash" width="YOUR WIDTH" height="YOUR HEIGHT" data="YOUR YOUTUBE URL"><param name="movie" value="YOUR YOUTUBE URL" /></object>
Hope this helps.
- ← Put image in textbox using css
- CSS, XHTML/HTML & JavaScript
- Keeping text on the same line, with separate hovers. →
Share this topic:
Page 1 of 1
Help

















