dvrip

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2023 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 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 Consumer added in v1.8.0

type Consumer struct {
	core.SuperConsumer
	// contains filtered or unexported fields
}

func (*Consumer) AddTrack added in v1.8.0

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

func (*Consumer) GetTrack added in v1.8.0

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

func (*Consumer) Start added in v1.8.0

func (c *Consumer) Start() error

func (*Consumer) Stop added in v1.8.0

func (c *Consumer) Stop() error

type Producer added in v1.8.0

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

func (*Producer) Start added in v1.8.0

func (c *Producer) Start() error

func (*Producer) Stop added in v1.8.0

func (c *Producer) Stop() 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