Documentation
¶
Index ¶
- type API
- type Auth
- type Client
- func (c *Client) AddTrack(media *core.Media, codec *core.Codec, track *core.Receiver) error
- func (c *Client) GetMedias() []*core.Media
- func (c *Client) GetTrack(media *core.Media, codec *core.Codec) (*core.Receiver, error)
- func (c *Client) MarshalJSON() ([]byte, error)
- func (c *Client) Start() error
- func (c *Client) Stop() error
- type Device
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct { Token string ExpiresAt time.Time StreamProjectID string StreamDeviceID string StreamSessionID string StreamExpiresAt time.Time // contains filtered or unexported fields }
func (*API) ExchangeSDP ¶
func (*API) ExtendStream ¶ added in v1.9.0
func (*API) StartExtendStreamTimer ¶ added in v1.9.0
func (a *API) StartExtendStreamTimer()
func (*API) StopExtendStreamTimer ¶ added in v1.9.0
func (a *API) StopExtendStreamTimer()
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) MarshalJSON ¶
type Device ¶
type Device struct { Name string `json:"name"` Type string `json:"type"` //Assignee string `json:"assignee"` Traits struct { SdmDevicesTraitsInfo struct { CustomName string `json:"customName"` } `json:"sdm.devices.traits.Info"` SdmDevicesTraitsCameraLiveStream struct { VideoCodecs []string `json:"videoCodecs"` AudioCodecs []string `json:"audioCodecs"` SupportedProtocols []string `json:"supportedProtocols"` } `json:"sdm.devices.traits.CameraLiveStream"` } `json:"traits"` }
Click to show internal directories.
Click to hide internal directories.