PHP Classes

File: generatelist.php

Recommend this page to a friend!
  Classes of Rahman Haghparast   PHP Live Radio Streaming   generatelist.php   Download  
File: generatelist.php
Role: Example script
Content type: text/plain
Description: 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
Class: PHP Live Radio Streaming
Serve MP3 audio files to play from a playlist
Author: By
Last change:
Date: 8 years ago
Size: 242 bytes
 

Contents

Class file image Download
<?php
require 'offlineradio.class.php';
$init = new stdClass();
$init->mp3Folder = dirname(__FILE__).DS.'files';
$init->playListName = 'list.txt';
$init->startTime = '19:10:00';
$radio = new OfflineRadio($init);
$radio->generateList();