This plugin will help stream your mp3 files.
Please Note: The only file format it can stream is .mp3 files in your content items or static contents.
- Once installed, go to plugin manager and click on 1pixeloutplayer. Publish it and click the 'save' button.
- To insert the audio player and show in content - Insert a line as shown below into a content item and replace your_file.mp3 with the file name of mp3 track that you want to stream. Note, a forward slash at the beginning of the path is not required.
Put your mp3 files under the folders /mp3/ in your webroot.
If all audio files will be in one directory, you can define the default directory in the Plugin Parameters. For example, if /mp3/ is defined as the default directory, insert the following into content:
Any audio files in a subdirectory within the default directory still have to be named. For example, if /mp3/ is the Plugin Parameters default directory and files are in /mp3/january/, insert the following into content:
The default directory can be overridden by beginning the file path with a slash. For example, if /mp3/ is the Plugin Parameters default directory and the file is in /otherfiles/audio/, insert the following into content:
It is possible to stream mp3 hosted from an external server. To do this, just use a full URL to where the mp3 is hosted:
Individual MP3s can now be set to automatically play. Insert the following into content:
If there is more than one file on a page set to autostart, only the first one will automatically play.