Documentation ¶
Index ¶
- Constants
- func SofiaHash(password string) string
- type Client
- func (c *Client) AddAudioTrack(mediaCode byte, sampleRate byte)
- func (c *Client) AddVideoTrack(mediaCode byte, payload []byte)
- func (c *Client) Close() error
- func (c *Client) Dial() (err error)
- func (c *Client) GetMedias() []*core.Media
- func (c *Client) GetTrack(media *core.Media, codec *core.Codec) (*core.Receiver, error)
- func (c *Client) Handle() error
- func (c *Client) Login(user, pass string) (err error)
- func (c *Client) MarshalJSON() ([]byte, error)
- func (c *Client) Play() (err error)
- func (c *Client) Request(cmd uint16, data string) (err error)
- func (c *Client) Response() (b []byte, err error)
- func (c *Client) ResponseJSON() (res Response, err error)
- func (c *Client) Start() error
- func (c *Client) Stop() error
- type Response
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 ¶
Types ¶
type Client ¶
func (*Client) AddAudioTrack ¶
func (*Client) AddVideoTrack ¶
func (*Client) MarshalJSON ¶ added in v1.3.0
func (*Client) ResponseJSON ¶
Click to show internal directories.
Click to hide internal directories.