NAME
Moonshot::Connection - Interface to Moonshot Jukebox protoocol
SYNOPSIS
$juke = new Moonshot::Connection( Server => "jukebox" ); $juke->connect(); $juke->add($album, $track); print $juke->get_status();
DESCRIPTION
This module handles the client-side communication with the Moonshot juke daemon.
METHODS
Moonshot::Connecton->new()
Creates a new Moonshot Jukebox connectio and tries to connect to it.
$juk->connect()
Connect to the Moonshot jukebox server
$juke->port( [ new port ] )
If you specify a new port, this sets the port on which to connect. This method returns the current port.
$juke->server( [ $server ] )
If you specify a new server, this sets the server on which to connect. This method returns the current server hostname.
$juke->add_album($album [ , $track ])
Add an album or a track to the playlist. Takes album ID and track IDs.
1 POD Error
The following errors were encountered while parsing the POD:
- Around line 26:
You can't have =items (as at line 41) unless the first thing after the =over is an =item
=over without closing =back