![]() ![]() |
Info | ![]() |
Demos | ![]() |
![]() ![]() |
Reputation | Support forum (2) | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2017-01-21 (1 year ago) ![]() | ![]() ![]() ![]() ![]() | Total: 664 This week: 5 | All time: 4,709 This week: 99![]() |
Version | License | PHP version | Categories | |||
radio-streaming 2.2 | Free for non-comm... | 5.4 | HTML, PHP 5, Audio, AJAX |
Description | Author | |
This class can serve MP3 audio files to play from a playlist. |
This class is written to enable offline radio making with php. My definition for offline radio is a set of recorded files that is played continuously after one another. It only supports mp3 files and works with modern browsers. Installation: unzip the downloaded file and make a folder in your webserver root directory. name it something like "radio". The index file is a simple html file that loads the player in an iframe and shows the name and duration of the file being played and the next one. You first need to add a folder to your radio folder and name it something like "files" and then execute generatelist.php in your browser to generate list.txt file to be used as the time table for your radio. The structure of list.txt is very simple. It is a comma seperated file. The first column is the path to the sound files and the second column is the time to broadcast it. I used new line (\r\n) to start a new row. The getPlayingItem() method in the class outputs which file needs to be played and the playList() method does the rest. It starts playing based on the time the viewers requested so every one who connects to your internet radio listens to the same thing. License: This program is free for non-commercial use. Please send any comments and questions to my email address: haghparast@gmail.com |
![]() |
File | Role | Description |
---|---|---|
![]() |
Class | the mp3 class by mfboy (http://www.phpclasses.org/browse/file/26606.html) |
![]() ![]() |
Example | a script to generate the list of files to play from a folder. It calculates the duration of each file and calculates the playing time without any gaps in between |
![]() ![]() |
Example | generate a playlist for 24 hours |
![]() ![]() |
Data | showcase of how it works |
![]() ![]() |
Example | generates an ajax output that shows the current playing file and the next one. It is used in index.html to show the playing item. |
![]() ![]() |
Data | jquery to use for ajax calls in index.html |
![]() ![]() |
Data | sample time table list |
![]() |
Class | the main class file |
![]() ![]() |
Example | the file to start playing the mp3 files based on the time table |
![]() ![]() |
Doc. | Read me first! |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
0% |
|
|
User Ratings | ||||||||||||||||||||||||||||||
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.