This tutorial will go over the steps to reproduce what I did in my Audio Showcase. Please note that this only applies for Drupal uses with the Dash Media Player.
Enable MP3 uploads to your Drupal website
- The first step is to enable the upload of MP3 files. You can do this by going to Administer >> File Uploads, and then under Default permitted file extensions, you need to add the extension mp3
- Also do the same thing in the Settings for ... for any other user roles that you have in your system.
Enable the required Drupal Modules
The next step is to install all the modules used in this tutorial. Make sure you install the following...
Create the Audio Content Type
- The next thing you will need to do is create a node type that will house your Audio nodes. You can do this by using CCK module. Once you have this module installed, you can then go to Administer >> Content Types, and then click on the link that says Add Content Type.
- You will want to give your new content type a Name of "Audio" and a Type of "audio".
- Now make sure you go down to where it says Attachments and then make sure you enable attachments for this node type.
- Now go down to where it says Image Attach and make sure you enable the attachment of images to your audio node. This will make it so that you can add album art to your music.
- Now go down and press Save Content Type
Set up your Audio View
Now that you have the content type set up, the next important step is to create a view that the player will use to show all the audio nodes. You do this by first going to Administer >> Views
Download the Audio Pro skin for Dash Media Player
The next step is to download the Audio Pro skin by going to http://www.tmtdigital.com/node/694. The skin is free to download and use. Once you have the skin downloaded, you will then need to extract the contents within the skins folder in your Dash Player folder. When you are done, you should then have the skin.swf file located at skins/audiopro/skin.swf
Adding the audio player to a node
Now that you have your site configured to add audio nodes to your Drupal system, the next step is to install the player to show the audio playlist. You will do this by first going to Create Content >> Page and then in the body, you will paste the following PHP code....
<?php
$params['width'] = 520;
$params['height'] = 111;
$params['skin'] = 'audiopro';
$params['playlist'] = 'audio';
$params['autostart'] = 'true';
print dashplayer_get_player($params);
?>
Now make sure that you enable the
PHP Code in the
Input Format of the body and then go down and press
Submit to save the node.
Start adding the music!!
Now it is time for the fun part... to start adding the music!
- Go to Create Content >> Audio
- Start by uploading your MP3 by going to File Attachments in the node and then make sure you Attach your music to the node
- While that is uploading, go ahead and select your album art by going to Attached Image and then select the image you would like to have associated as the album art.
- Finally, go up and give your MP3 a title.
- Make sure that the MP3 has finished uploading, and when it has, go down and press the Submit button.
- Now go check out your player... you now have your very own MP3 player built into your website!!