Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EncodeDaap ¶
EncodeDaap will take a map and encode it in daap format
Types ¶
type AesDecrypter ¶
type AesDecrypter struct {
// contains filtered or unexported fields
}
AesDecrypter decoder capable of decoding the encrypted packet and treating it as ALAC encoded
func NewAesDecrypter ¶
func NewAesDecrypter(aesKey []byte, aesIv []byte) *AesDecrypter
NewAesDecrypter Returns a new decoder that will unencrypt and decode the packet as a Apple Lossless encoded packet
type AirplayServer ¶
type AirplayServer struct {
// contains filtered or unexported fields
}
AirplayServer server for handling the RTSP protocol
func NewAirplayServer ¶
func NewAirplayServer(port int, name string, player player.Player) *AirplayServer
NewAirplayServer instantiates a new airplayer server
func (*AirplayServer) ChangeName ¶
func (a *AirplayServer) ChangeName(newName string) error
ChangeName will change the name of the broadcast service
func (*AirplayServer) Start ¶
func (a *AirplayServer) Start(verbose bool, advertise bool)
Start starts the airplay server, broadcasting on bonjour, ready to accept requests
func (*AirplayServer) ToggleAdvertise ¶
func (a *AirplayServer) ToggleAdvertise(shouldAdvertise bool)
ToggleAdvertise will toggle whether or not to advertise as an airplay service
type DacpClient ¶
type DacpClient struct {
// contains filtered or unexported fields
}
DacpClient used to perform DACP operations
func DiscoverDacpClient ¶
func DiscoverDacpClient(dacpID string, activeRemote string) *DacpClient
DiscoverDacpClient will try to find the matching DACP client for stream operations
func (*DacpClient) Next ¶
func (d *DacpClient) Next() error
func (*DacpClient) Pause ¶
func (d *DacpClient) Pause() error
func (*DacpClient) Play ¶
func (d *DacpClient) Play() error
func (*DacpClient) PlayPause ¶
func (d *DacpClient) PlayPause() error
func (*DacpClient) Stop ¶
func (d *DacpClient) Stop() error