Welcome to WebmasterWorld Guest from 54.162.240.235

Forum Moderators: incrediBILL

Message Too Old, No Replies

Video issue

     
6:58 pm on Dec 14, 2011 (gmt 0)

5+ Year Member



Hi, all. I have an issue that is kicking my butt. The code below works beautifully in Firefox and Safari. It opens up a video in a pop up window and only shows the video without Youtube branding. For whatever reason, it doesn't work in IE. You can test it easily by pasting

[youtube.com...]

into Firefox and in IE. Try it twice in IE, as it sometimes works the first time then no more afterwards. I believe it's a security setting issue with IE. Also, the finger pointer works in IE but not in Firefox. Ugh!

Here's the code:

<img class="s" src="http://www.my-websitesite.com//images/my-image.gif" width="280" height="196" alt="My alt image" span style="cursor: hand;" a href="http://www.youtube.com/v/hhOzGCEUNTg?version=3&amp;hl=en_US&amp;rel=0&autoplay=1" onClick="return popitup('http://www.youtube.com/v/hhOzGCEUNTg?version=3&amp;hl=en_US&amp;rel=0&autoplay=1')">
8:50 pm on Dec 14, 2011 (gmt 0)

5+ Year Member



Update: I've determined that it isn't a code issue but a Youtube URL issue that is causing the problem. For example:

<img class="s" src="http://www.my-websitesite.com//images/my-image.gif" width="280" height="196" alt="My alt image" span style="cursor: hand;" a href="http://youtu.be/hhOzGCEUNTg" onClick="return popitup('http://youtu.be/hhOzGCEUNTg')">

works fine on all browsers, but

<img class="s" src="http://www.my-websitesite.com//images/my-image.gif" width="280" height="196" alt="My alt image" span style="cursor: hand;" a href="http://www.youtube.com/v/hhOzGCEUNTg?version=3&amp;hl=en_US&amp;rel=0&autop lay=1" onClick="return popitup('http://www.youtube.com/v/hhOzGCEUNTg?version=3&amp;hl=en_US&amp;rel=0&autop lay=1')">

doesn't work on IE.

Simply copy the URL into your browsers and see what I'm talking about. Maybe IE has a problem with the /v/ folder? I like this code structure and URL because, as opposed to [youtu.be...] this URL plays without showing any Youtube branding and ends in a black screen (no additional videos), which is exactly what I want. Any ideas?
3:40 pm on Dec 15, 2011 (gmt 0)

5+ Year Member



This wound up being a Youtube URL issue. Funny how a simple change in the URL can cause that from one browser to another. The difference between

http://www.youtube.com/v/hhOzGCEUNTg?version=3&amp;hl=en_US&amp;rel=0&autop lay=1

and

http://youtu.be/hhOzGCEUNTg

[edited by: tedster at 8:54 pm (utc) on Dec 16, 2011]

2:19 am on Dec 21, 2011 (gmt 0)

5+ Year Member



found the correct link path to accomplish this: http://www.youtube.com/watch_popup?v=AVFAsN-_tpo

[edited by: tedster at 7:11 am (utc) on Dec 21, 2011]
[edit reason] display the full path [/edit]

7:19 am on Dec 21, 2011 (gmt 0)

WebmasterWorld Senior Member tedster is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Thank you for taking us along on your "adventure" - and documenting it here. I have never been up against this particular challenge, but I'm glad to have it recorded here for future reference.
 

Featured Threads

Hot Threads This Week

Hot Threads This Month