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

webankit’s picture

will need this feature in D7 also

webankit’s picture

will need this feature in D7 also

travist’s picture

Status: Active » Closed (won't fix)

There 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..

  • Create a content type for just the media
  • Add a node reference in the media content type to point to the main content type.
  • Install the Node Relationships module, and then in the form settings of the main content type, you can make it dynamically add new media nodes within the main content type node form using modals... this will allow you to "Add new media" that will open up a modal window where you can upload new media to that node
  • Install the Node Referrer module.
  • Setup a view using Views Attach to add a view within the main content type to show the uploaded media on that main content type. You can use Relationships to add the Node Referrer's of the main content type... these will end up being the media nodes you dynamically created.

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.