raop

package
v0.0.0-...-36a4cef Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 25, 2022 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EncodeDaap

func EncodeDaap(dataToEncode map[string]interface{}) ([]byte, error)

EncodeDaap will take a map and encode it in daap format

func EstablishSession

func EstablishSession(ip string, port int) (*rtsp.Session, error)

EstablishSession establishes a session that is ready to have data streamed through it

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

func (*AesDecrypter) Decode

func (d *AesDecrypter) Decode(data []byte) ([]byte, error)

Decode decodes the supplied data using AES

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) Stop

func (a *AirplayServer) Stop()

Stop stops thes airplay server

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

type ParamAlbumArt

type ParamAlbumArt []byte

Parameter types

type ParamMuted

type ParamMuted bool

Parameter types

type ParamTrackInfo

type ParamTrackInfo struct {
	Album  string
	Artist string
	Title  string
}

Parameter types

type ParamVolume

type ParamVolume float64

Parameter types

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL