Documentation ¶
Index ¶
- func GetBaseURL(username string) (string, error)
- func GetHomeID(baseURL, token string) (int, error)
- type Client
- func (c *Client) AddTrack(media *core.Media, codec *core.Codec, track *core.Receiver) error
- func (c *Client) CheckHomesecPassword() (err error)
- func (c *Client) Connect() error
- func (c *Client) Dial() (err error)
- func (c *Client) EnableHomesecVoice(enable bool) error
- func (c *Client) GetDeviceICE() (ice []string, err error)
- func (c *Client) GetDeviceSDP() (sd *pion.SessionDescription, err error)
- func (c *Client) GetHomesecConnectStatus() (clientID string, err error)
- func (c *Client) GetMedias() []*core.Media
- func (c *Client) GetTrack(media *core.Media, codec *core.Codec) (*core.Receiver, error)
- func (c *Client) GetTurnServer() (turn *pion.ICEServer, err error)
- func (c *Client) MarshalJSON() ([]byte, error)
- func (c *Client) Request(method string, args any) (err error)
- func (c *Client) SendICEtoRobot(candidate string, mid string) (err error)
- func (c *Client) SendSDPtoRobot(offer *pion.SessionDescription) (err error)
- func (c *Client) SetVoiceChatVolume(volume int) error
- func (c *Client) Start() error
- func (c *Client) StartCameraPreview() error
- func (c *Client) StartVoiceChat() error
- func (c *Client) Stop() error
- func (c *Client) StopCameraPreview(clientID string) error
- func (c *Client) SwitchVideoQuality(hd bool) error
- type DeviceInfo
- type UserInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBaseURL ¶
Types ¶
type Client ¶
func (*Client) CheckHomesecPassword ¶
func (*Client) EnableHomesecVoice ¶
func (*Client) GetDeviceICE ¶
func (*Client) GetDeviceSDP ¶
func (c *Client) GetDeviceSDP() (sd *pion.SessionDescription, err error)
func (*Client) GetHomesecConnectStatus ¶
func (*Client) MarshalJSON ¶
func (*Client) SendICEtoRobot ¶
func (*Client) SendSDPtoRobot ¶
func (c *Client) SendSDPtoRobot(offer *pion.SessionDescription) (err error)
func (*Client) SetVoiceChatVolume ¶
func (*Client) StartCameraPreview ¶
func (*Client) StartVoiceChat ¶
func (*Client) StopCameraPreview ¶
func (*Client) SwitchVideoQuality ¶
type DeviceInfo ¶
type DeviceInfo struct { DID string `json:"duid"` Name string `json:"name"` Key string `json:"localKey"` }
func GetDevices ¶
func GetDevices(ui *UserInfo, homeID int) ([]DeviceInfo, error)
Click to show internal directories.
Click to hide internal directories.