Home ›
Dash MP3 Player Set up

Step 1: Install Dash Media Player
You may have this installed on your site to service your video needs already, and if that’s the case skip this step. If you don’t have it installed check out the Dash Media Player Quick Start Guide for Drupal CMS.
Step 2: Required Modules
The Audio Player uses many of the same modules as the stock Dash Media Player so you only need to download and install the following modules:
- CCK
- Image
- Image Attach (This comes with the Image Module, all you have to do is enable this in Administer >> Modules
Step 3: Enable MP3 uploads
- Go to Administer >> File uploads and under default file extensions add mp3 as an extension
Note: The Dash Media Player also supports many other audio file extensions (.wav for example) - Do the same for any role that you have already set up, Settings for admin for example
Step 4: Create Audio Content Type
- Go to Administer >> Content Types and create a new content type with the Name of “Audio” and Type “audio”
- Under Workflow Settings, enable Attachments
- Under Image Attach Settings, enable Image Attachments
- Save your content type.
- Now, under manage fields for the content type you just created, add two new fields, one for Artist and one for Song.
- Under New field, enter for Label “Artist”
- For Field name enter “artist”
- Then select Text under “Type of data to store.”
- Finally select Text field under Form element to edit the data.
- Save the field.
- Do the same for again but substitute “Song” for the Label and “song” for file name.
Step 5: Create an Audio View
- Go to Administer >> Views and create a new View by clicking Add
- Give your view a name such as audio
- Give it a short description... don’t worry about the View tag, and then go down and press the Next button.
- Now go over and press the + button next to the Filters section.
- Add a filter for Node: Type then select your node type that you are using for audio from the checkboxes.
- Next, let’s add a Field.... press the + next to the Field section.
- Add a Field for Node: Title
- Don’t forget to save your View.
Note: The views module is going to dictate how the playlist is displayed and organized, so if you want to add sort criteria or any other filters, this can be done in your Audio view and will be reflected in the playlist display on the player.
Step 6: Download the Audio Player skin
- Go to TMT Digital (obviously going to change) and download audiopro.zip
- Unpack the directory and place it in the skins directory of your player directory which was set up with the stock Dash Media Player install. There is only one file (skin.swf) in the audiopro folder, however you need to place the whole folder into the skins directory.
The file path should look like this:
skins/audiopro/skin.swf
Step 7: Adding the Code
- Copy and paste this code into the body where you want the player to display.
<?php
$params[‘skin’] = ‘audiopro’;
$params[‘playlist’] = ‘audio’;
$params[‘autostart’] = ‘true’;
print dashplayer_get_player($params);
?>One option is to go to Create Content >> Page
- Give the page a name and paste the code into the body
Another common option is to paste the code into a block. This allows you to easily move the player around your site.
- Go to Administer >> Blocks and make a new block by clicking Add block
- Name the block and paste the code into the body.
Do not forget to change your input format to PHP code
Step 8: Create Audio Content
- Go to Create Content >> Audio
- Upload your mp3 file as well as your Image if you have one
- Fill out the rest of the form giving the node a name, you can write a description if you want, and fill out the Artist and Song fields that you created earlier (these will display in the player)
- Click save and check the location that you pasted the code for the player, the song should appear there and start playing automatically.
Step 9: Autoplay (optional)
If you don’t want the music to start playing automatically on the page load simply change
$params[‘autostart’] = ‘true’
to
$params[‘autostart’] = ‘false’



