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
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'] = 652;
$params['height'] = 432;
$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!!
Passing media file paths to the Dash Player using CCK
Does the method involved in passing video file paths to Dash Player the same as in audio files (and its image as well?)
Thanks.
Player not loading audio
Thanks for the tutorial!
Having some trouble getting it to work though. The dash player is showing and the view is returning my audio nodes but when i try to view the player it just sits and doesn't add the songs into the player. Any ideas?
This is most likely a
This is most likely a service connection issue. Have you verified all the correct settings in your dashconfig.xml file?
config and noob error
Thanks for the quick reply.. got it up and running now!