Closed (won't fix)
Project:
MediaFront
Version:
6.x-1.0-beta4
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
12 Dec 2010 at 19:00 UTC
Updated:
26 Jun 2011 at 01:47 UTC
Thank you for this great module.
For my website I'm looking for a way to create a playlist of video files that are uploaded to the same node as the player.
I create a node of the content type called "videoplayer". I use the CCK multigroup module so I can have multiple groups of video title, video thumbnail, videofile.
Now i'd create a custom node tpl called node-videoplayer.tpl.php. How would I create the player to display using the API?
$params['playlist'] = 'media';
print mediafront_get_player('player', $params);
$videoPlaylist='';
foreach($node->field_dj_video AS $data){
$videoPlaylist.='<track>';
$videoPlaylist.='<title>'.$data['data']['description'].'</title>';
$videoPlaylist.='<location>'.$data['filepath'].'</location>';
$videoPlaylist.='<image>'.$data['data']['video_thumb'].'</image>';
$videoPlaylist.='</track>';
}
$params['playlist'] = $videoPlaylist;
I just need to make this super easy for some webmasters to use.
thanks
Comments
Comment #1
webankit commentedwill need this feature in D7 also
Comment #2
webankit commentedwill need this feature in D7 also
Comment #3
travist commentedThere is a way to accomplish this using some really good tools and it will be super easy for any webmaster to create a per-node playlist. I do have a tutorial about using node relativity, but this method is a little outdated... What I would recommend doing is the following..
I hope this gives you the gist. I have done this before, and it is extremely elegant and user friendly to build per-node playlist. If you need further assistance, or would like to contract me to do this for you, then just let me know.
Thanks,
Travis.