I was wondering if there is any way for the dynamic playlists created by using the file upload (attachment) module to use the file description on the uploaded file instead of the filename? I was hoping that this would be the default behavior but it isn't so. I'm trying to find a way to caption images uploaded by the file upload module and displayed with Image Rotator.

Comments

Stuart Greenfield’s picture

Category: support » feature

At the moment there isn't a way to do this, but it's another sensible idea.

I'm building a list of feature enhancements, so this one will go on the list. I've noticed you tagged this thread as 5.x-2.4. I'm tending to focus new feature work on the 6.x series, so I'll get it working in there first, and then backport.

Changing to feature request as I want to be able to track new feature list!

robhall’s picture

Stuart, FYI, this was a really easy customization on my part on line 908 of the swftool.module (version 5.x-2.4) I changed
$playlist_data['playlist'][$key]['title'] = $playlist_data['playlist'][$key]['filename'];
to
$playlist_data['playlist'][$key]['title'] = $data['description'];
then I realize that if you may have to account for the description not being available if you weren't using the upload module so I wound up with this that seems to be working for me but I haven't tested it (I'm only using the upload module with swf tools)

if (isset($data['description'])) { $playlist_data['playlist'][$key]['title'] = $data['description'];
    	 } else { $playlist_data['playlist'][$key]['title'] = $playlist_data['playlist'][$key]['filename']; } 
b_w_s’s picture

Version: 5.x-2.4 » 6.x-2.x-dev

Just wanted to chime in and say that I'd really like to see this in 6.x-2.x as well. Displaying the actual titles rather than the filepath seems like the one remaining thing standing in the way of easy plug 'n play operation for media playlists.

nwe_44’s picture

Would like to add my voice to this. Filenames/paths make little sense to the end user as descriptions. Fantastic module otherwise though.

Stuart Greenfield’s picture

Version: 6.x-2.x-dev » 5.x-2.4

I need to think about how to do this for the 6.x-2.x series - the direct integration with the upload module isn't in the SWF Tools 6 players (yet).

I haven't been actively working on the 5.x series in a while, so I will try to get round to implementing the fix suggested above, and to implementing something equivalent in the 6.x series.

In terms of 6.x, I am trying to work up the CCK support since this, ultimately, will be a much more flexible approach than the upload module. It might just take me a while to get it all in place.

Note to self - see also #420162: JW Player, 1PixelOut and displaying mp3s as Artists & Titles, not raw links

Marko B’s picture

Just to note, that #2 doesnt work with filefield and images as nothing but image names are passed to module. How could title or alt or desc be possible to fetch from swf module? I looked trough all the module and couldnt find a way to get it, suppose some extra function is needed to get it from CCK?

nwe_44’s picture

@deepM I've been using #2 and filefield + imagefield successfully. When you say "images" are you using imagefield to store the files, or the image module?

Marko B’s picture

Version: 5.x-2.4 » 6.x-2.5

imagefield ofcourse if using filefield. you are using it and getting DESCRIPTION of image in your XML? dont belive you as there is no code for it?!?! ohh and i see now that u r maybe talking about 5 and i was talking about version 6-2.5

drupup’s picture

Add my voice on this one as well. SWFTools is so very, very close to being everything I need to make video easy for users. But the "filepath" titles are a real deal-breaker in terms of using playlists. It seems such a small thing in the overall picture, but it's vexing.

Can anyone suggest a workaround for Drupal 6 users similar to that suggested above?

krabbe’s picture

subscribe...

hugafish’s picture

subscribe

hedac’s picture

Yes there has to be a way of display custom titles... but maybe this depends on the player swf also...
for example I have noticed that 1pixelout player displays the mp3 tags of author and title. I like that. But 1pixelout player only works for single mp3... when I use a list of files with JW player 3.17... the paths and filenames are displayed in the list.
It would be good to control titles with the description field. Subscribing.

hedac’s picture

apparently... 1pixelout 2.0 beta supports multiple files and titles? as described here http://wpaudioplayer.com/standalone

Stuart Greenfield’s picture

As part of the work on SWF Tools 6.3 I'm overhauling the playlist fuctions, and improving the CCK formatters.

The aim is that when you use a CCK filefield the playlist will pick up the description field and use that in the playlist. I'm also building in support for the getID3 module so that you can pick up meta-data and use that.

It's working as prototype at the moment, but not quite ready to commit as there are some glitches I'm still working on.

iceman90’s picture

subscribe.

strawman’s picture

I tried #2 suggestion with 2.5 version of swftools with simpleviewer but there is no data to receive.....can't seem to get the alt text or the image description into the xml for simpleviewer...

any more suggestions or thoughts as to what can be done?

Thanks for the module and thank you for your time...

strawman’s picture

figured it out...

once I clean it up I'll post what I did...

overtune’s picture

subscribe

cbassig’s picture

subscribe

kangaroobin’s picture

subscribe

kangaroobin’s picture

:strawman
seems like you know what you are doing! could you help me with this?

http://drupal.org/node/664254

overtune’s picture

Hi!

Whats the status of this issue?
When do You think SWF Tools 6.3 will be ready to use with cck and the description field?

Really good work btw!

Thanks!

Stuart Greenfield’s picture

This feature is now well underway in DRUPAL-6--3. Playlisting and file handling is being re-written and will include proper support for descriptions, amongst other things. The focus is on using the CCK module to handle files and links, with a broader range of formatters and tools to support neat CCK stuff.

It will take a little while to ripple the support through to all the players as I'm ironing out the underlying code, but it's working for JW4 and FP3 as prototypes.

trothmaster’s picture

Would anyone know how to display the current playing title as text elsewhere on the page? Here is a link to a script that apparently does this but I can't figure out how to implement this with my page. Any ideas?
http://www.longtailvideo.com/support/forum/JavaScript-Interaction/12583/...

Thank you so much!

Stuart Greenfield’s picture

Status: Active » Needs review

Changing to "needs review" - I'm trying to work through the queue and see which aspects are addressed in the DRUPAL-6--3 branch to check I hit the main ones!

All modules should now use the description field, if it is available, when used via CCK. It makes for much nicer formatter players!

dubs’s picture

For anyone who's interested, please see this link: -

http://drupal.org/node/725752

This is a way to pass the CCK description field to 1pixelout. Sorry for the lack of a proper patch...