Now that I've worked past the bug in FLV Media player that wasn't displaying the playlist, XSPF Playlist + FLV Media player seems like a pretty good solution for embedding video and creating playlists automatically.

Only problem is, the displayed playlist just shows the same node title for every item in the playlist, and that's it :(

None of the media fields I've tried seem to offer any extra fields for text, just the upload fields (CCK, media field, standard upload). Is there a module out there I'm missing that can create these additional fields for me? What is everyone else doing to add titles/captions to their playlist data?

Comments

sansui’s picture

Ok, I got the titles working (FileField Meta was blocking my file description field), by using the description field for each attachment. Any possible way to also have a caption field?

arthurf’s picture

Status: Active » Postponed (maintainer needs more info)

Captions aren't supported in the XSPF standard. There is something called "annotation" which could be implemented, but it's unclear to me what should automatically be entered into these fields- any ideas?

sansui’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

Yeah, I see what you mean. There's no custom fields that have an additional field for this information anyway, not sure I'd want it at this point either :) I retract my thoughts on a caption field

riyana56’s picture

Version: 5.x-1.20-beta1 » 6.x-1.x-dev
Category: support » feature
Status: Closed (fixed) » Needs review

Sometimes it is useful to have a caption for your videos. For example, if you have a long playlist that has a thumbnail and a title, you may want to add a short description. The annotation tag in XSPF does this. However, I have found nowhere in the admin screens that will let you enable the "annotation" field. Therefore, a hack is necessary:

In version 6.x:

Open up xspf_playlist\xspf_playlist_node\xspf_playlist_node.module and go to approximately line 414

You will have to add a new item to the array. Copy the following code and paste it in:

  $item[] = array(
    'key' => 'annotation',
    'value' => $node->body,
  );

What this code does is add a new tag called annotation to the XML output. In my example above, the annotation value is populated by whatever is in the "Body" field of the node.

Now, when you view your playlist, you will see a caption underneath the title.

riyana56’s picture

If you want to populate the annotation field by a custom created field, then just create the new field for your content type (Content Management -> Edit Content Type -> Manage Fields). Then, go back to the xspf_playlist_node.module and go to approximately line 414 and add the following chunk of code:

  $item[] = array(
    'key' => 'annotation',
    'value' => $node->field_annotation[0]['value'],
  );

In this example, you will replace field_annotation with whatever name you gave your field.

aaron’s picture

Status: Needs review » Active

there is no patch to review. additionally, we've dropped the xspf_playlist_node module, so there's now no automatic way to do this currently, anyway.