1

I tried using both 'Embed media field' and 'Media : Youtube' module in D& website to create a content-type field to embed youtube videos and play in on lightbox2. Although images work well with the lightbox, there is some problem with videos.I enabling the videos settings under configuration/User interface/Lightbox2 but is of no use.

All i want is to play youtube videos in the lightbox

  • 1
    I think its better u write a custom jQuery code to play the video. Makes sense and will reduce the time by a huge margin. If u need i am ready to share my piece of code. – user4081 Jun 7 '12 at 13:04
  • I really appreciate your helping hand. Humbly i request to share your code with all of us. – user3350 Jun 11 '12 at 6:44
0

Something I have done in the past is create a content for my video and use your embedded media stuff you already have.

I then change the Manage display to not show the video on the full content view.

I then use a module like Colorbox Node to render just the video in a colorbox window. You do this be editing the Colorbox display to only show the video.

So your full node page content has everything but the rendered video. You add a link that points to the current node page as a colorbox node link. When the user clicks on that link it will show the video.

So you are essentially switch the display based on how the node is rendered. Either through a full page or through a colorbox modal. Saves on code duplication :) and keeps it compact.

Does that make sense?

| improve this answer | |
2

You can install Embedded Media Field module and Video Embed Field module.

Then add a cck field of type "Video Embed" and widget "Video" for a content type.

In that field you can enter the youtube video url. Then display that node in lightbox and it will work fine to play in the lightbox.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy