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.
YouTube has depreciated Flash and YouTube videos no longer work with older versions of this module.
See this issue:
http://stackoverflow.com/questions/38917194/why-do-youtube-embedded-vide...
Can someone provide a simple hack/solution to those using older versions of this module to rectify this?
Comment | File | Size | Author |
---|---|---|---|
#5 | emfield-youtube_no_flash-2783589-5.patch | 12.85 KB | dzinkevich |
#2 | emfield-youtube_no_flash-2783589-1.patch | 11.59 KB | jenlampton |
Comments
Comment #2
jenlamptonHere's a patch for 6.x-1.27 that removes the flash player and adds the standard iframe that youtube supports. Note, this patch does not support all the options like autoplay, etc, its just a quick hack-fix to get videos working until sites can be upgraded off Drupal 6.x.
Comment #3
jenlamptonPlease at least update from 6.17 to 6.27 before trying to apply :)
Comment #4
HS CreditAttribution: HS commentedThank you, jenlampton! I am grateful to you for your help - may you be blessed in abundance. I have not tested the patch but editing the youtube.inc file, as you have suggested, worked for 6x.1.17 version of this module.
Comment #5
dzinkevich CreditAttribution: dzinkevich at Zivtech commentedThanks to jenlampton for her patch. It didn't quite work with the site we inherited, as it was using the default external plugin.
Attached is a patch that adds both her original patch as well as my updates. Cheers!
Comment #6
yadranko CreditAttribution: yadranko commentedWhat about the patch for the latest version (6.x-2.7)? I would hate to have to downgrade this module. Thanks for any further help on this.
Comment #7
ericG CreditAttribution: ericG commentedfor 6.x-2.7 I took only the bottom part of dzinkevich's patch and it worked (I had uploaded the edited patch yesterday Aug 18, but someone seems to have deleted it), so if you need to fix 6.x-2.7 take the patch on comment 5 and delete everything above
diff --git a/media_youtube/themes/media-youtube-default-external.tpl.php b/media_youtube/themes/media-youtube-default-external.tpl.php
and it will work
there is no emfield/contrib/emvideo/providers directory in the 2 branch so applying the patch in #5 fails
Comment #8
yadranko CreditAttribution: yadranko commentedThank you so much ericG, it worked like a charm!
Comment #9
SolasArd CreditAttribution: SolasArd as a volunteer commentedJust noticed that youtube videos weren't displayed on my site when using HTML5 player as well, thanks to this thread I figured I needed to make changes to the /media_youtube/themesmedia-youtube-html5.tpl.php file as well, replacing
src="<?php echo $url; ?>?hd=1"
withsrc="https://www.youtube.com/embed/<?php print $video_id ?>"
worked for me