go fmt
This commit is contained in:
+2
-2
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user