Per your request in this issue:
https://www.drupal.org/node/549654
I am opening a new request for playing embedded Flickr videos in the Colorbox overlay. To clarify, I would like to have the thumbnails of all my videos appear in a photoset grid. (They do.) Then when you click on one, just as it pops up a larger version of an image in the Colorbox overlay, I would like for each thumbnail of a video to pop up the medium size video using the Flickr embedded media player in the Colorbox overlay, so my viewers can watch the video on my website without needing to leave it and go to the Flickr site.
@webservant316 mentioned several great links in the previous thread:
https://www.drupal.org/node/1099580
http://www.jacklmoore.com/colorbox/example2/
http://code.flickr.net/2008/05/01/videos-in-the-flickr-api/
I've found a few more links that may help. According to the Colorbox FAQ here:
http://www.jacklmoore.com/colorbox/faq/
in order for YouTube videos to play in Colorbox, they need to be embedded. I'm hoping/assuming that is the same issue for Flickr.
According to the Flickr link above
http://code.flickr.net/2008/05/01/videos-in-the-flickr-api/
Flickr videos must be embedded with the Flickr media player. This page tells you how to get the variables and generate the embed code.
I hope this is enough. Your Flickr module is great and solved a headache for me. This would be the icing on the cake, just making the solution perfect.
Comment | File | Size | Author |
---|---|---|---|
#9 | videos_in_colorbox-2335639-9.patch | 5.31 KB | lolandese |
#6 | videos_in_colorbox-2335639-6.patch | 2.58 KB | lolandese |
Comments
Comment #1
lolandese CreditAttribution: lolandese commentedAlso, from the same page at http://code.flickr.net/2008/05/01/videos-in-the-flickr-api/:
This is the main difference with YouTube videos. it confirms a bit what most people say; use YouTube to embed your videos and Flickr for your photos.
If you really insist on showing Flickr videos in Colorbox, you have to use their player in an iframe as described at http://stackoverflow.com/a/5469953. I think it will be far from ideal compared with simply using YouTube or another third party video host.
Nonetheless patches are welcome, but I think you agree that the investment isn't worth it, if it provides an inferior solution. Sorry.
In any case, thanks for the request, as it is good to check these things out. The day that Flickr offers videos in a common video format, this issue can be reopened.
Comment #2
lolandese CreditAttribution: lolandese commentedSome more info at https://www.drupal.org/node/1127030. Not too encouraging either.
Comment #3
cindyr CreditAttribution: cindyr commentedSo I'm stuck with Flickr videos for this client. I delved into it for a couple of hours, and here's what I came up with. This is ideal, if the thumbnail link returned the same result as the test text link on this page:
As you can see, rather than embedding their page on the site, which I could not get to work properly, I embedded their swf video player on my page, then opened it as inline content into Colorbox. Is this a path that you would be willing to take with the Flickr module?
Comment #4
lolandese CreditAttribution: lolandese commentedJust tried your code and ... yes, it works better as I expected.
In this moment I can only work on this bit by bit in the evening hours and I will, but it will go slowly. Though, I will look into anything that comes from your side and am open to include it. Patches are always committed with attribution.
I suggest you take a look at the
function theme_flickr_flickrcomslideshow_simple
in flickr.module to have an idea of how the slideshow is implemented and make a variation on it with your snippet.Thanks for your research and snippet. It makes a good start.
Comment #5
cindyr CreditAttribution: cindyr commentedI will take a look. Be forewarned, I dink around in PHP, have written a couple of extremely simple custom modules, but am really not able to call myself a coder. I'll see what I can do though...
Comment #6
lolandese CreditAttribution: lolandese commentedAttached patch should provide the desired functionality.
Comment #7
lolandese CreditAttribution: lolandese commentedOops! Remove
dsm($photo);
from the patch (or enable Devel).Comment #8
lolandese CreditAttribution: lolandese commentedTo add a condition to see if Colorbox with 'colorbox-inline' is enabled.
Comment #9
lolandese CreditAttribution: lolandese commentedIn the attached patch:
Settings in Colorbox to enable playing an embedded video in it
Comment #11
lolandese CreditAttribution: lolandese commentedComment #12
lolandese CreditAttribution: lolandese commentedThe only glitch is that when navigating to next images by clicking on them in Colorbox, it will open the Flickr page if it's a video, instead of taking you to the next picture. The navigating buttons work though as expected, as does navigating using the keyboard arrow keys.
It's not ideal, but neither a deal breaker.
Thanks for your contribution.
Comment #14
lolandese CreditAttribution: lolandese commentedComment #15
lolandese CreditAttribution: lolandese commentedComment #16
lolandese CreditAttribution: lolandese commentedJust adding another link for future reference that explains a bit more about the used 'stewart.swf' file.
http://stackoverflow.com/questions/6794279/get-flickr-video-player-url-f...