This commit is contained in:
Jamal Fanaian
2024-07-11 17:58:31 -07:00
parent 5b0781253f
commit e1021a96af
2 changed files with 15 additions and 15 deletions
+2 -2
View File
@@ -120,7 +120,7 @@ func (a *API) GetDevices(projectID string) (map[string]string, error) {
supported := false
for _, protocol := range device.Traits.SdmDevicesTraitsCameraLiveStream.SupportedProtocols {
if (protocol == "WEB_RTC" || protocol == "RTSP") {
if protocol == "WEB_RTC" || protocol == "RTSP" {
supported = true
break
}
@@ -294,7 +294,7 @@ func (a *API) ExtendStream() error {
func (a *API) GenerateRtspStream(projectID, deviceID string) (string, error) {
var reqv struct {
Command string `json:"command"`
Params struct {} `json:"params"`
Params struct{} `json:"params"`
}
reqv.Command = "sdm.devices.commands.CameraLiveStream.GenerateRtspStream"