Fix video/audio ssrc and low power cameras

This commit is contained in:
seydx
2025-10-26 16:39:59 +01:00
parent bd8e4fa298
commit 863174839c
5 changed files with 122 additions and 24 deletions
+7
View File
@@ -314,6 +314,10 @@ func (c *TuyaSmartApiClient) Init() error {
return fmt.Errorf("failed to start MQTT: %w", err)
}
if c.skill.LowPower > 0 {
_ = c.mqtt.WakeUp(c.localKey)
}
return nil
}
@@ -498,6 +502,9 @@ func (c *TuyaSmartApiClient) loadWebrtcConfig() (*WebRTCConfig, error) {
return nil, err
}
// Store LocalKey
c.localKey = webRTCConfigResponse.Result.LocalKey
iceServers, err := json.Marshal(&webRTCConfigResponse.Result.P2PConfig.Ices)
if err != nil {
return nil, err