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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

manfer’s picture

Status: Active » Needs review
FileSize
3.62 KB

A 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.

manfer’s picture

Minimal change, drupal code standards reviewed.

pradyumnahpt’s picture

Hi Manfer,
The patch works perfect for the latest development version.Thank you very much for the efforts to make this.!!!!!

Tommy_J’s picture

Had 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.

lunazoid’s picture

Patch works fine for me, thanks!

lunazoid’s picture

Issue summary: View changes
Status: Needs review » Reviewed & tested by the community

Just 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. :-)

mstrelan’s picture

This appears to be a duplicate of #1804500: Auto-handling for links to videos.

MediaFormat’s picture

@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.

MediaFormat’s picture

Version: 7.x-3.0-beta8 » 7.x-4.x-dev
Category: Support request » Feature request
Status: Reviewed & tested by the community » Needs review
FileSize
4.06 KB

Will 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

MediaFormat’s picture

Priority: Critical » Normal
FileSize
4.05 KB

Fixed youtu.be type links

MediaFormat’s picture

Removed trailing white-space