NAME
Net::Icecast::Source - icecast streaming source
SYNOPSIS
use Net::Icecast::Source;
my $source = new Net::Icecast::Source(
username => 'revmischa',
password => 'hackthegibson',
server => '128.128.64.64',
port => '8000',
mount_point => '/source',
mime_type => 'audio/mpeg',
meta => {
name => 'lol dongs radio fun land',
description => 'party time all day',
aim => 'lindenstacker',
url => 'http://shoutcast.com',
},
);
my $sample;
open $sample, "sample.mp3" or die $!;
$source->stream_fh($sample);
close $sample;
DESCRIPTION
Net::Icecast::Source
is a simple module designed to make it easy to build programs which stream audio data to an Icecast2 server to be relayed.
CONSTRUCTOR
- new (%opts)
-
Create a new source instance. Options are: username, password, server, port, mount_point, meta, mime_type
- stream_fh($filehandle)
-
Read from $filehandle until EOF, passing through the raw data to the icecast server.
1 POD Error
The following errors were encountered while parsing the POD:
- Around line 52:
=over without closing =back