dvrip

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const Login = uint16(1000)
View Source
const OPMonitorClaim = uint16(1413)
View Source
const OPMonitorStart = uint16(1410)

Variables

This section is empty.

Functions

func SofiaHash

func SofiaHash(password string) string

Types

type Client

type Client struct {
	core.Listener
	// contains filtered or unexported fields
}

func NewClient

func NewClient(url string) *Client

func (*Client) AddAudioTrack

func (c *Client) AddAudioTrack(mediaCode byte, sampleRate byte)

func (*Client) AddVideoTrack

func (c *Client) AddVideoTrack(mediaCode byte, payload []byte)

func (*Client) Close

func (c *Client) Close() error

func (*Client) Dial

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

func (*Client) GetMedias

func (c *Client) GetMedias() []*core.Media

func (*Client) GetTrack

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

func (*Client) Handle

func (c *Client) Handle() error

func (*Client) Login

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

func (*Client) MarshalJSON added in v1.3.0

func (c *Client) MarshalJSON() ([]byte, error)

func (*Client) Play

func (c *Client) Play() (err error)

func (*Client) Request

func (c *Client) Request(cmd uint16, data string) (err error)

func (*Client) Response

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

func (*Client) ResponseJSON

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

func (*Client) Start

func (c *Client) Start() error

func (*Client) Stop

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