Versions in this module Expand all Collapse all v1 v1.0.0 Mar 9, 2022 Changes in this version + const SignalCodecUpdate + const SignalStreamStop + type Client struct + CodecData []av.CodecData + OutgoingPacketQueue chan *av.Packet + Signals chan int + func Dial(options ClientOptions) (*Client, error) + func (client *Client) Close() error + func (client *Client) CodecUpdatePCMAlaw() + func (client *Client) CodecUpdatePPS(val []byte) + func (client *Client) CodecUpdateSPS(val []byte) + func (client *Client) Command(command requestCode, data interface{}) (*Payload, []byte, error) + func (client *Client) Login() error + func (client *Client) Monitor() + func (client *Client) SetKeepAlive() error + func (client *Client) SetTime() error + type ClientOptions struct + Debug bool + DialTimeout time.Duration + DisableAudio bool + ReadWriteTimeout time.Duration + URL string + type Frame struct + Data []byte + Meta MetaInfo + type LoginResp struct + AliveInterval int + ChannelNum int + DeviceType string + ExtraChannel int + Ret int + SessionID string + type MetaInfo struct + Datetime time.Time + FPS int + Frame string + Height int + Type string + Width int + type Payload struct + BodyLength int32 + Head byte + MsgID int16 + SequenceNumber int32 + Session int32 + Version byte