Hello,
I was wondering why my youtube videos don't show in iPad or iTouch/iPhone. Is this a problem with Apple or is there some kind of code I need to add to make them work? They work fine on other browsers. On iPad, the overlay pops up but no video ever loads or plays.
My URL is:
http://marthalodge.com/about_me_design_drupal
My code is:
Thank you for any help you can offer.
M
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | Screen shot 2012-01-28 at 12.26.28 PM.png | 17.82 KB | lilbebel |
Comments
Comment #1
lilbebel commentedI'm having trouble showing my code here. Every time I enter it, it shows as a red circle with an x through it. I've attached it as an image so you can see what I did.
Comment #2
lilbebel commentedComment #3
manfer commentedThe support of youtube videos included in shadowbox 3 is by using the flash player as we can see in the following code extracted from the shadowbox homepage examples.
But if I'm not wrong iphone, ipad does not support flash content so the only solution to include youtube videos inside a shadowbox and compatible with a terminal that does not support flash would be to use the iframe player. So it would be something like:
code that is going to use html5 when flash is not available.
Comment #4
gaiazzz commentedthank you manfer for resolve this issue! I've a last answer... how can i autoplay the youtube video with the iframe player?
Thank you for any help
Comment #5
manfer commentedThe autoplay querystring (?autoplay=1) should work just fine appended to the youtube link:
Comment #6
lilbebel commentedThank you manfer. Your solution works a treat. Great stuff.
M
Comment #7
manfer commentedComment #9
MartyMan commentedHI,
Hope someone can help me. I have very little clue as to coding. I am working in the old Iweb program and have managed to get my youtube video working on desktops and laptops however I can't get it on ipads.
I have searched and spent hours....can someone please take a look and let me know where i'm messing up.
thanks
<a href="http://www.youtube.com/v/0wOBAgGosZg?autoplay=1" title="Fleavel Knievel" rel="shadowbox; player=iframe; width=420; height=315">Comment #10
lilbebel commentedHello MartyMan,
You'll need to add to the end of your sequence. Also, using urls with youtube.com/v/ will redirect user to a .swf file. iPad doesn't support Flash so that is why it isn't playing. You need to get the embed code. See below for an example of code I used on my site. You'll notice htere is no /v/ and is, instead, embed.
Good luck!
Comment #11
lilbebel commentedPlease see example of my code attached here:
<a href="http://www.youtube.com/embed/w0ffwDYo00Q?autoplay=1" rel="shadowbox; player=iframe; width=720"><img src="sites/marthalodge/files/interface_images/animation_02.jpg"></a>