Documentation
¶
Index ¶
- func Dial(rawURL string) (core.Producer, error)
- type API
- func (a *API) ExchangeSDP(projectID, deviceID, offer string) (string, error)
- func (a *API) ExtendStream() error
- func (a *API) GenerateRtspStream(projectID, deviceID string) (string, error)
- func (a *API) GetDevices(projectID string) ([]DeviceInfo, error)
- func (a *API) StartExtendStreamTimer()
- func (a *API) StopExtendStreamTimer()
- func (a *API) StopRTSPStream() error
- type Auth
- type Device
- type DeviceInfo
- type RTSPClient
- type WebRTCClient
- func (c *WebRTCClient) AddTrack(media *core.Media, codec *core.Codec, track *core.Receiver) error
- func (c *WebRTCClient) GetMedias() []*core.Media
- func (c *WebRTCClient) GetTrack(media *core.Media, codec *core.Codec) (*core.Receiver, error)
- func (c *WebRTCClient) MarshalJSON() ([]byte, error)
- func (c *WebRTCClient) Start() error
- func (c *WebRTCClient) Stop() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type API ¶
type API struct {
Token string
ExpiresAt time.Time
StreamProjectID string
StreamDeviceID string
StreamExpiresAt time.Time
// WebRTC
StreamSessionID string
// RTSP
StreamToken string
StreamExtensionToken string
// contains filtered or unexported fields
}
func (*API) ExchangeSDP ¶
func (*API) ExtendStream ¶ added in v1.9.0
func (*API) GenerateRtspStream ¶ added in v1.9.9
func (*API) GetDevices ¶
func (a *API) GetDevices(projectID string) ([]DeviceInfo, error)
func (*API) StartExtendStreamTimer ¶ added in v1.9.0
func (a *API) StartExtendStreamTimer()
func (*API) StopExtendStreamTimer ¶ added in v1.9.0
func (a *API) StopExtendStreamTimer()
func (*API) StopRTSPStream ¶ added in v1.9.9
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"`
ParentRelations []struct {
Parent string `json:"parent"`
DisplayName string `json:"displayName"`
} `json:"parentRelations"`
}
type DeviceInfo ¶ added in v1.9.9
type RTSPClient ¶ added in v1.9.9
type RTSPClient struct {
// contains filtered or unexported fields
}
func (*RTSPClient) GetMedias ¶ added in v1.9.9
func (c *RTSPClient) GetMedias() []*core.Media
func (*RTSPClient) MarshalJSON ¶ added in v1.9.9
func (c *RTSPClient) MarshalJSON() ([]byte, error)
func (*RTSPClient) Start ¶ added in v1.9.9
func (c *RTSPClient) Start() error
func (*RTSPClient) Stop ¶ added in v1.9.9
func (c *RTSPClient) Stop() error
type WebRTCClient ¶ added in v1.9.9
type WebRTCClient struct {
// contains filtered or unexported fields
}
func (*WebRTCClient) GetMedias ¶ added in v1.9.9
func (c *WebRTCClient) GetMedias() []*core.Media
func (*WebRTCClient) MarshalJSON ¶ added in v1.9.9
func (c *WebRTCClient) MarshalJSON() ([]byte, error)
func (*WebRTCClient) Start ¶ added in v1.9.9
func (c *WebRTCClient) Start() error
func (*WebRTCClient) Stop ¶ added in v1.9.9
func (c *WebRTCClient) Stop() error
Click to show internal directories.
Click to hide internal directories.