I need help with loading videos hosted on YouTube within a lightbox so that they can be viewed on iPhone.
My project is using joemottershaw’s litebox https://github.com/joemottershaw/litebox
The current build is here:
http://craigwebbart.com/pegasus/video.html
I’ve gone back to see his demo: http://www.cloud-eight.com/github/litebox/
and YouTube videos do not load there either. Rats.
Vimeo works so I know this is a YouTube thing.
YouTube seems to have done something to their API. Here are links to their stuff:
http://youtube-eng.blogspot.com/2015/01/youtube-now-defaults-to-html5_27.html
https://developers.google.com/youtube/player_parameters#Embedding_a_Player
https://developers.google.com/youtube/iframe_api_reference
The YouTube Development Team does not seem to have offered any demo.
I don’t have enough JavaScript expertise to parse their explanation.
What I need is to figure out how to modify my code or litebox so that videos load on iPhone.
An alternative is to find another lightbox that successfully loads YouTube. Fancybox loads but I’m getting a huge hover around the icon on desktop, essentially the size of the embedded video.
See http://craigwebbart.com/pegasus/video_06a.html top two square buttons on desktop to see hover problem with Fancybox.
Please help me to understand YouTube’s new API and how it may (or may not be) be affecting the ability to view on iPhone.
Thanks!