Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Just a heads up for those looking to allow uses to play videos in-page on their mobile iOS devices (mobile safari):
In: media_youtube-default-external.tpl.php
<!-- Fallback content -->
<?php print $thumbnail; ?>
This will cause the auto-replacement that YouTube does for iOS devices to be disabled. In other words, it will always default to the thumbnail if this snippet is left in place. When a users clicks, it will take them out of mobile Safari and into the YouTube app, instead of keeping them on the page.
So heads up to you mobile web UI devs out there. :)
Comments
Comment #1
jorisx CreditAttribution: jorisx commentedHmm, I still get a thumb image when I open a video on iOS ... I use lightbox2 or colorbox to display the video on top the page. (I tried them both) Anyone knows what goes wrong here? fix? see: http://fgestudio.com/fge/movies
Thanx in advance :)
Comment #2
rumblewand CreditAttribution: rumblewand commentedWhat did you do to fix your site? Looks like its working now and I'm having this issue.
Comment #3
rumblewand CreditAttribution: rumblewand commentedstill not able to get this working - I'm playing with it now.
Comment #4
rumblewand CreditAttribution: rumblewand commentedOk. Looks like he switched to colorbox - which I'd rather not do at this point. I have some custom setups in lightbox2. I'll post over in Lightbox2 and see if they have any ideas.