html youtube custom play button
11,821
Solution 1
For whatever reason, limitations are in place. This does not work if you are on an ipad in html5. My jsfiddle does, however, work for desktop browsers.
Please post back if you've gotten this to work for ipad and I'll re-mark you as the answer.
Solution 2
Try this:
however i would recommend to use something like swfobject to embed the video.
https://developers.google.com/youtube/js_api_reference#Embedding
Author by
Jacksonkr
Another guy in a chair with questions & answers. jacksonkr.com
Updated on June 04, 2022Comments
-
Jacksonkr almost 2 years
The youtube player's play button works fine, but my custom play button does not work.
** EDIT **
The current JSFiddle now works fine on a pc/mac, but not on an iPad.
** EDIT 2 **
iframed youtube w/external play button
** EDIT 3 **
-
Jacksonkr about 12 yearsworks great, just not on an iPad :( I should have mentioned that is really what got me here in the first place.
-
stewe about 12 yearsI'd try embedding it using an <iframe> -> developers.google.com/youtube/iframe_api_reference
-
Jacksonkr about 12 yearsaye aye. Well the player works in the iPad now, but the playbutton still only works on a computer! wtf.. JS Fiddle link w/iframe is in the latest edit.
-
stewe about 12 yearsYour last example (edit 2) looks good, unfortunately i don't have an ipad to test :(
-
Jacksonkr about 12 yearsCheck this out: stackoverflow.com/questions/8972726/…