Documentation ¶
Index ¶
- func RandomBytes(size int) []byte
- func RandomUint32() uint32
- type Client
- func (c *Client) GetFreeStream() (srv *hap.Service, err error)
- func (c *Client) SetConfig(srv *hap.Service, config *rtp.StreamConfiguration) (err error)
- func (c *Client) SetupEndpoins(srv *hap.Service, req *rtp.SetupEndpoints) (res *rtp.SetupEndpointsResponse, err error)
- func (c *Client) StartStream(ses *Session) (err error)
- type Session
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RandomBytes ¶
func RandomUint32 ¶
func RandomUint32() uint32
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) GetFreeStream ¶
GetFreeStream search free streaming service. Usual every HomeKit camera can stream only to two clients simultaniosly. So it has two similar services for streaming.
func (*Client) SetupEndpoins ¶
func (c *Client) SetupEndpoins( srv *hap.Service, req *rtp.SetupEndpoints, ) (res *rtp.SetupEndpointsResponse, err error)
func (*Client) StartStream ¶
type Session ¶
type Session struct { Offer *rtp.SetupEndpoints Answer *rtp.SetupEndpointsResponse Config *rtp.StreamConfiguration }
func NewSession ¶
func NewSession(vp *rtp.VideoParameters, ap *rtp.AudioParameters) *Session
func (*Session) SetLocalEndpoint ¶
Click to show internal directories.
Click to hide internal directories.