We are using your YouTube Field module to generate a YouTube thumbnail that links to a Colorbox of the YouTube video, on this page http://www.homebuildersgallery.com/scott-patrick-homes (in the bottom-right of the page).
The Colorbox Trigger opens the video in the Colorbox, and everything is working great, except if we set the video to autoplay. This would be ideal, as the user will be clicking the thumbnail to view the video.
The problem is that if we set the video to autoplay, it will autoplay of course. But the video is not displayed in the View, but it's autoplaying in the background. This will get worse as we add more videos, as all the videos will autoplay. Is there a way to have the video only autoplay when the thumbnail is clicked.
Any help or patch will be appreciated.
Thanks!
Comment | File | Size | Author |
---|---|---|---|
#1 | 1914406-youtube-hidden-modal-content.png | 109.95 KB | guschilds |
Comments
Comment #1
guschilds CreditAttribution: guschilds commentedAlf,
Thanks for providing a link. If you look at the attached screenshot, you'll see that what is happening is the videos are rendered into the page but hidden. When the modal window is used, it is pulling that embed code from the page. When you set them to autoplay, they are playing upon the initial page load because they are all rendered into the HTML from the beginning.
This isn't really something that can be fixed with a module patch, but I can think of a few options you have:
Does this help?
Gus
Comment #2
guschilds CreditAttribution: guschilds commentedAlf, I suggest you check out #1929652: Support for colorbox. A patch has been provided to add Colorbox support for this module. I think it would work well for what you are trying to accomplish here, as you could set the field's formatter in your view to be a thumbnail linked to open Colorbox in a modal window. Please share all further experience with Colorbox integration in that issue.