Documentation
¶
Index ¶
- Constants
- type AuthError
- type AuthResponse
- type Camera
- type Client
- func (c *Client) Close() error
- func (c *Client) GetBackchannelCodec() (codecID byte, sampleRate uint32, channels uint8)
- func (c *Client) Protocol() string
- func (c *Client) ReadPacket() (*tutk.Packet, error)
- func (c *Client) RemoteAddr() net.Addr
- func (c *Client) SetBackchannelCodec(codecID byte, sampleRate uint32, channels uint8)
- func (c *Client) SetDeadline(t time.Time) error
- func (c *Client) SetResolution(quality byte) error
- func (c *Client) StartAudio() error
- func (c *Client) StartIntercom() error
- func (c *Client) StartVideo() error
- func (c *Client) StopIntercom() error
- func (c *Client) SupportsAudio() bool
- func (c *Client) SupportsIntercom() bool
- func (c *Client) WriteAudio(codec byte, payload []byte, timestamp uint32, sampleRate uint32, ...) error
- type Cloud
- type Producer
Constants ¶
View Source
const ( FrameSize1080P = 0 FrameSize360P = 1 FrameSize720P = 2 FrameSize2K = 3 FrameSizeFloodlight = 4 )
View Source
const ( BitrateMax uint16 = 0xF0 BitrateSD uint16 = 0x3C )
View Source
const ( MediaTypeVideo = 1 MediaTypeAudio = 2 MediaTypeReturnAudio = 3 MediaTypeRDT = 4 )
View Source
const ( KCmdAuth = 10000 KCmdChallenge = 10001 KCmdChallengeResp = 10002 KCmdAuthResult = 10003 KCmdControlChannel = 10010 KCmdControlChannelResp = 10011 KCmdSetResolutionDB = 10052 KCmdSetResolutionDBRes = 10053 KCmdSetResolution = 10056 KCmdSetResolutionResp = 10057 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthError ¶
type AuthResponse ¶
type Camera ¶
type Camera struct {
MAC string `json:"mac"`
P2PID string `json:"p2p_id"`
ENR string `json:"enr"`
IP string `json:"ip"`
Nickname string `json:"nickname"`
ProductModel string `json:"product_model"`
ProductType string `json:"product_type"`
DTLS int `json:"dtls"`
FirmwareVer string `json:"firmware_ver"`
IsOnline bool `json:"is_online"`
}
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) GetBackchannelCodec ¶
func (*Client) RemoteAddr ¶
func (*Client) SetBackchannelCodec ¶
func (*Client) SetResolution ¶
func (*Client) StartAudio ¶
func (*Client) StartIntercom ¶
func (*Client) StartVideo ¶
func (*Client) StopIntercom ¶
func (*Client) SupportsAudio ¶
func (*Client) SupportsIntercom ¶
type Cloud ¶
type Cloud struct {
// contains filtered or unexported fields
}
func (*Cloud) GetCameraList ¶
type Producer ¶
type Producer struct {
core.Connection
// contains filtered or unexported fields
}
func NewProducer ¶
Click to show internal directories.
Click to hide internal directories.