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.
I found that it's useful to sometimes have the YouTube videos automatically start. For example, I've created a node-video.tpl.php file that detects when $page == TRUE and the video will automatically play if that's the case.
This simple patch allows you to do that.
Comment | File | Size | Author |
---|---|---|---|
autoplay.patch | 1.08 KB | Steve Dondley |
Comments
Comment #1
aaron CreditAttribution: aaron commentedi'll look at this -- already have added autoplay (with admin settings in place) for youtube at video_cck. i strongly suggest switching over to that module, as i'm not really intending to support or extend the youtube_cck module anymore. i might be writing a script to help people convert to the other module, but no promises.
Comment #2
aaron CreditAttribution: aaron commentedthanks for the patch. never did get around to it. don't want to mess with the conversion process, though, so convert to Embedded Media Field instead, which already has this feature.
aaron