By stevecarter on
After a considerable search, I'm not finding a solution for embedding a YouTube playlist in Drupal. I've tried using the excellent Embedded Video Field CCK module, which works well for a SINGLE video, but cannot work with a playlist.
I've found references to the problem going back two years, but no resolution. Seems as if this would be a very common need, so I wonder what I'm missing in my searches for a solution. YouTube playlists are an excellent way to display a series of videos in a single "custom" player--so even if it isn't yet possible to simply embed the playlist, a solution which gave several YouTube videos on the same node or block would be an adequate work-around.
Steve Carter
Comments
if there's no FREE solution,
if there's no FREE solution, how about a PAY Solution?
Perhaps a different idea...
This is the kind of issue which seems rather fundemental to the working of a Drupal site, and not the sort of "add on" which should be contracted out.
Since many Drupal sites which will want to use video from YouTube are likely to want to use playlists, a rather standard feature of YouTube and a very useful way of getting multiple relate videos into a single player, and since addition of video to websites is becoming "required" and is likely to become ubiquitous very soon, it would seem that the functionality of playlists in a critical module like emfield is not really a "for pay" kind of function.
Of course there may well be another way to get this functionality, and that's what I'm asking the community about--if I figure it out, I'll share it, if you figure it out, you'll share it, and unlike microsoft programmers, we won't make our living hiding our knowledge, but by applying it to projects. Of course you may feel that this is that sort of thing, the sort that should be charged for--and who am I to disagree?
But if I figure it out, I'm telling everybody--We'll all make money implementing it for some client who will be very happy that we can do these things, and that they don't have to know them.
_
With drupal whether or not something 'should be' contracted out is a pretty straight forward question. If someone hasn't contributed a module you need and you don't have the skills to write it yourself, then you essentially have 2 options: 1) pay a developer to write it or 2) band together with other interested users and offer a bounty for it.
Drupal is a "scratch your own itch" community. And the hardcore developers are incredibly generous in contributing back things they think the community might find useful. Far more so than with other CMSs, imo.
The mere fact that this module doesn't exist is evidence that no one has found it that necessary or contributed it back.
also wish to embed youtube playlists
I have the same wish--to be able to embed playlists using the embed video field. I went into the embed media module and tried to add a provider called "youtubeplaylist" in emfield/contrib/emvideo/providers but I couldn't get it to work. I tried modifying youtube.inc and modifying example.inc.txt... no luck.
Any good ideas on how to get started, and the best approach?
kludge fix
After looking at the YouTube URLs, I noticed this: individual video codes are 11 characters long, while playlist codes are 16 characters long.
This kludge below depends on that fact--if YouTube ever changes the length of codes, this fix could become unfixed.
With that warning...
1) Go to emfield/contrib/emvideo/providers/youtube.inc and make the following changes:
Line 344 currently looks like this:
Change it to this:
2) Go to the return array statement on line 284. To the three existing array elements, add one more:
Use this at your own risk. At least it's fast and easy...
Subscribing
Subscribing
Subscribe
Subscribe
patches are, as always,
patches are, as always, welcome.
Primitive version of Youtube playlist
I had similar requirements so decided to make simple CCK Field Module, just a beginner in Drupal so little cleanup is needed.
https://github.com/nishanthkrishna/d6-youtube
The module supports autocomplete as well which will allows to type and select public playlist.
Can also try
Can also try https://github.com/travist/drupal_youtube
ReggieW