Documentation ¶
Overview ¶
Package nestsdm implements a client for the Nest Smart Device Management APIs (for cameras)
Index ¶
- func Extender(ctx context.Context, sdm *smartdevicemanagement.Service, ...)
- func OAuthClient(clientID, secret, tokFile string) *http.Client
- type CameraImageTrait
- type CameraLiveStreamTrait
- type ExtendRtspStreamResults
- type GenerateRtspStreamResults
- type InfoTrait
- type ResultStreamURLs
- type Traits
- type VideoResolution
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Extender ¶
func Extender(ctx context.Context, sdm *smartdevicemanagement.Service, r *GenerateRtspStreamResults, device string)
func OAuthClient ¶
Types ¶
type CameraImageTrait ¶
type CameraImageTrait struct {
MaxVideoResolution VideoResolution `json:"maxVideoResolution"`
}
type CameraLiveStreamTrait ¶
type CameraLiveStreamTrait struct { MaxVideoResolution VideoResolution `json:"maxVideoResolution"` VideoCodecs []string `json:"videoCodecs"` AudioCodecs []string `json:"audioCodecs"` }
type ExtendRtspStreamResults ¶
type ExtendRtspStreamResults struct { StreamToken string `json:"streamToken"` StreamExtensionToken string `json:"streamExtensionToken"` ExpiresAt time.Time `json:"expiresAt"` }
func ExtendRTSPStream ¶
func ExtendRTSPStream(ctx context.Context, sdm *smartdevicemanagement.Service, device, set string) (*ExtendRtspStreamResults, error)
type GenerateRtspStreamResults ¶
type GenerateRtspStreamResults struct { StreamURLs ResultStreamURLs `json:"streamUrls"` StreamToken string `json:"streamToken"` StreamExtensionToken string `json:"streamExtensionToken"` ExpiresAt time.Time `json:"expiresAt"` }
func GenerateRTSPStream ¶
func GenerateRTSPStream(ctx context.Context, sdm *smartdevicemanagement.Service, device string) (*GenerateRtspStreamResults, error)
type ResultStreamURLs ¶
type ResultStreamURLs struct {
RTSPURL string `json:"rtspUrl"`
}
type Traits ¶
type Traits struct { Info InfoTrait `json:"sdm.devices.traits.Info"` CameraLiveStream *CameraLiveStreamTrait `json:"sdm.devices.traits.CameraLiveStream"` CameraImage *CameraImageTrait `json:"sdm.devices.traits.CameraImage"` }
type VideoResolution ¶
Directories ¶
Path | Synopsis |
---|---|
cmd
|
|
capture
capture retrieves video streams from Nest cameras and feeds them to ffmpeg.
|
capture retrieves video streams from Nest cameras and feeds them to ffmpeg. |
list
lists all video capable devices exposed in the Nest Smart Device Management API for the specified project.
|
lists all video capable devices exposed in the Nest Smart Device Management API for the specified project. |
Click to show internal directories.
Click to hide internal directories.