Closed (fixed)
Project:
XSPF Playlist
Version:
5.x-0.12
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
4 Aug 2008 at 19:50 UTC
Updated:
12 Nov 2008 at 14:47 UTC
My default height is 200px, but sometimes I have only 2-4 tracks and there is white space shows up.
arthurf, is it possible to automatically change playlists height depending on tracks quantity?
I'm printing player in node template like this:
$params = array(
'type' => 'playlist',
'width' => 200,
'height' => 200,
'allowfullscreen' => 'false',
);
$vars = array(
'file' => xspf_playlist_url('xspf/node/'. $node->nid),
'displaywidth'=>0,
'shuffle' => 'false',
'transition' => 'fade',
'thumbsinplaylist' => 'false'
);
print theme("swfobject_api", base_path() . path_to_theme() . '/flash/mediaplayer.swf', $params, $vars); ps. thank you for this module
| Comment | File | Size | Author |
|---|---|---|---|
| white space.jpg | 25.36 KB | olegnaumov |
Comments
Comment #1
olegnaumov commentedSorry, changed priority to normal.
Comment #2
olegnaumov commentedWrong place
Comment #3
arthurf commentedBasically, you're going to have to figure out how many tracks there are and then adjust the height accordingly. You could get the track count by doing something like:
I'm not sure if this is the visual outcome that you want, but the concept should hold.
Comment #4
olegnaumov commentedHey, arthurf! Thanks, you really helped me out.
This is how I've done it:
Comment #5
olegnaumov commented[edit] Double post, sorry
Comment #6
arthurf commentedYou can actually do this now with views- if you look at the XSPF filter, you can set the number of items per node that the filter will return. This is a new feature that was written for the alpha release.
Glad the code helped though!