Hi All,
Using this module,the video is being played in the shadowbox only if the youtube url is in the format
http://youtube.com/v/voceyAq-R9E whereas the actual url of the video is http://youtube.com/watch?v=voceyAq-R9E .This is fine for custom url,but I have a view of videos that needs to be played in the shadowbox,so it is pulling the actual url (http://youtube.com/watch?v=voceyAq-R9E) and not
http://youtube.com/v/voceyAq-R9E (which is the required format for playing videos in shadowbox) and even while adding content for url,its taking the actual url and not the required one,So the videos are not being played in the shadow box.Can Please help me if I am missing something somewhere or if there is a way to convert the actual url to required one.I am using Embed media field and Media:youtube modules along with shadowbox.
Thank you.
Comment | File | Size | Author |
---|---|---|---|
#11 | shadowbox-compatible_youtube_links-1934856-11.patch | 4.03 KB | MediaFormat |
#2 | shadowbox-compatible_youtube_links-1934856-2.patch | 3.71 KB | manfer |
#1 | shadowbox-compatible_youtube_links-1934856-1.patch | 3.62 KB | manfer |
Comments
Comment #1
manfer CreditAttribution: manfer commentedA new option in auto handle configuration to automatically convert any not compatible youtube link into shadowbox compatible link.
The shadowbox compatible links that are generated are of the form:
http://www.youtube.com/embed/YOUTUBEID
which opens shadowbox using its iframe player and shows the youtube video player filling the whole iframe.
Comment #2
manfer CreditAttribution: manfer commentedMinimal change, drupal code standards reviewed.
Comment #3
pradyumnahpt CreditAttribution: pradyumnahpt commentedHi Manfer,
The patch works perfect for the latest development version.Thank you very much for the efforts to make this.!!!!!
Comment #4
Tommy_J CreditAttribution: Tommy_J commentedHad the same problem and now it's solved for me, thanks!
However... the other part of it not reported here still persists for me. Namely, video preview images don't display at all when I use shadowbox as formatter.
Comment #5
lunazoid CreditAttribution: lunazoid commentedPatch works fine for me, thanks!
Comment #6
lunazoid CreditAttribution: lunazoid commentedJust upgraded to shadowbox 7.x-4.0-rc1 and the patch still works. Marking this RTBC in hopes it gets into the actual release so I don't have to remember to patch each upgrade. :-)
Comment #7
mstrelan CreditAttribution: mstrelan commentedThis appears to be a duplicate of #1804500: Auto-handling for links to videos.
Comment #8
MediaFormat CreditAttribution: MediaFormat commented@mstrelan actually these are not duplicates but could be complimentary.
This module allows one to simply paste the usual url, and not have to use the
/embed/
or/v/
url.Comment #9
MediaFormat CreditAttribution: MediaFormat commentedWill more likely be committed if it is ready for the latest 7.x-4.x-dev branch.
-Removed white space.
-Changed input and output urls to https (standard)
-Added autoplay from settings
Comment #10
MediaFormat CreditAttribution: MediaFormat commentedFixed
youtu.be
type linksComment #11
MediaFormat CreditAttribution: MediaFormat commentedRemoved trailing white-space