SitePoint Sponsor |
|
User Tag List
Results 1 to 11 of 11
Thread: Embedding YouTube in XHTML?
-
Oct 20, 2006, 17:02 #1
- Join Date
- Oct 2006
- Posts
- 97
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Embedding YouTube in XHTML?
I've been rewriting one of my pages and when I try to put a YouTube video in my page it doesn't display properly in IE, although it looks fine in FireFox. Anyone know what's up with that? The page I'm working on is here:
http://dangerouslyfun.com/index2.html
-
Oct 20, 2006, 17:18 #2
I would suggest using this cross browser code in replace of what you currently have:
HTML Code:<object type="application/x-shockwave-flash" data="http://www.youtube.com/v/knKDLhgeOwM" height="350" width="425"><param name="movie" value="http://www.youtube.com/v/knKDLhgeOwM" /></object>
-
Oct 20, 2006, 19:27 #3
- Join Date
- Oct 2006
- Posts
- 97
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
hmm...it still isn't working. This is what it looks like when I open it in IE:
-
Oct 20, 2006, 19:45 #4
Does this also stall for you (it is my suggested code and nothing else)? It shouldn't.
The Flash player for Linux is not so hot and I run IE 6 under WINE. Nonetheless, the video still plays all the way through like a charm.
-
Oct 20, 2006, 20:03 #5
- Join Date
- Oct 2006
- Posts
- 97
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Actually, it does. That's weird. I always use Firefox so I guess I just haven't noticed it until now.
-
Oct 20, 2006, 20:11 #6
Originally Posted by volare
BTW - your page (with the new code) works fine in IE 6 under WINE - played all the way through without a hiccup on Linux.
-
Oct 20, 2006, 20:15 #7
- Join Date
- Oct 2006
- Posts
- 97
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
It does not work.
-
Oct 20, 2006, 20:17 #8
Originally Posted by volare
Instant message any friend with IE and it will work for them.
-
Oct 20, 2006, 20:41 #9
- Join Date
- Oct 2006
- Posts
- 97
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
I guess I'll have to work on fixing IE.
May I ask, if the code you provided is superior, why doesn't YouTube provide it that way? (I'm not suggesting it isn't superior, I'm just curious what YouTube is up to.)
-
Oct 20, 2006, 21:07 #10
Originally Posted by volare
Last edited by brandaggio; Oct 20, 2006 at 21:42.
-
Oct 20, 2006, 23:03 #11
- Join Date
- May 2006
- Location
- Aurora, Illinois
- Posts
- 15,476
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Originally Posted by volare
Not only that, but it's a relatively new technique that most people just either haven't heard of, or don't care about. "But it works for me" tends to be the common excuse. Refusing to upgrade a browser or operating may "work" for some but it doesn't mean it's right either.Save the Internet - Use Opera | May my mother rest in peace: 1943-2009
Dan Schulz - Design Team Advisor | Follow me on Twitter
SitePoint References: HTML CSS JavaScript | Become A Guru
WordPress SEO Checklist | What WordPress Plugins Do You Use?
Web Standards Curriculum | Image Free Equal Height Columns
Bookmarks