Apache-MP3
view release on metacpan or search on metacpan
}
# whether to read info for each MP3 file (might take a long time)
sub read_mp3_info {
my $d = shift->r->dir_config('ReadMP3Info') || '';
return $d !~ /$NO/oi;
}
# whether to time out streams
sub stream_timeout {
shift->r->dir_config('StreamTimeout') || 0;
}
# how long an album list is considered so long we should put buttons
# at the top as well as the bottom
sub file_list_is_long { shift->r->dir_config('LongList') || 10 }
sub home_label {
my $self = shift;
my $home = $self->r->dir_config('HomeLabel') ||
$self->x('Home');
Table 1: Configuration Variables
Name Value Default
---- ----- -------
GENERAL OPTIONS
AllowDownload yes|no yes
AllowStream yes|no yes
AllowPlayLocally yes|no yes
CheckStreamClient yes|no no
ReadMP3Info yes|no yes
StreamTimeout integer 0
DIRECTORY OPTIONS
BaseDir URL /apache_mp3
CacheDir path -none-
HelpImgURL URL apache_mp3_fig1.gif:374x292
StreamBase URL -none-
LocalNet subnet -none-
DISPLAY OPTIONS
ArrowIcon URL right_arrow.gif
=item ReadMP3Info I<yes|no>
This controls whether to extract field information from the MP3
files. The default is "yes".
If "no" is specified, all fields in the directory listing will be
blank except for I<filename> and I<description>, which will both be
set to the physical filename of the MP3 file.
=item StreamTimeout I<integer>
For demo mode, you can specify a stream timeout in seconds.
Apache::MP3 will cease streaming the file after the time specified.
Because this feature uses the average bitrate of the song, it may be
off by a second or two when streaming variable bitrate MP3s.
=back
=head2 Configuration Variables Affecting Paths and Directories
( run in 0.251 second using v1.01-cache-2.11-cpan-a5abf4f5562 )