dvrip

package
v1.9.7 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Login          = 1000
	OPMonitorClaim = 1413
	OPMonitorStart = 1410
	OPTalkClaim    = 1434
	OPTalkStart    = 1430
	OPTalkData     = 1432
)

Variables

This section is empty.

Functions

func Dial added in v1.8.0

func Dial(url string) (core.Producer, error)

func SofiaHash

func SofiaHash(password string) string

Types

type Backchannel added in v1.9.4

type Backchannel struct {
	core.Connection
	// contains filtered or unexported fields
}

func (*Backchannel) AddTrack added in v1.9.4

func (c *Backchannel) AddTrack(media *core.Media, _ *core.Codec, track *core.Receiver) error

func (*Backchannel) GetTrack added in v1.9.4

func (c *Backchannel) GetTrack(media *core.Media, codec *core.Codec) (*core.Receiver, error)

func (*Backchannel) Start added in v1.9.4

func (c *Backchannel) Start() error

type Client

type Client struct {
	// contains filtered or unexported fields
}

func (*Client) Close

func (c *Client) Close() error

func (*Client) Dial

func (c *Client) Dial(rawURL string) (err error)

func (*Client) Login

func (c *Client) Login(user, pass string) (err error)

func (*Client) Play

func (c *Client) Play() error

func (*Client) ReadChunk added in v1.8.0

func (c *Client) ReadChunk() (b []byte, err error)

func (*Client) ReadJSON added in v1.8.0

func (c *Client) ReadJSON() (res Response, err error)

func (*Client) ReadPacket added in v1.8.0

func (c *Client) ReadPacket() (pType byte, payload []byte, err error)

func (*Client) Talk added in v1.8.0

func (c *Client) Talk() error

func (*Client) WriteCmd added in v1.8.0

func (c *Client) WriteCmd(cmd uint16, payload []byte) (n int, err error)

type Producer added in v1.8.0

type Producer struct {
	core.Connection
	// contains filtered or unexported fields
}

func (*Producer) Start added in v1.8.0

func (c *Producer) Start() error

type Response

type Response map[string]any

Jump to

Keyboard shortcuts

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