using substream for SD live is giving issues (to be checked)

This commit is contained in:
Cedric Verstraeten
2023-01-26 00:35:29 +01:00
parent ae9d42e821
commit 3f6204e2eb
+7 -7
View File
@@ -169,13 +169,13 @@ func RunAgent(configuration *models.Configuration, communication *models.Communi
}
// Handle livestream SD (low resolution over MQTT)
if subStreamEnabled {
livestreamCursor := subQueue.Latest()
cloud.HandleLiveStreamSD(livestreamCursor, configuration, communication, mqttClient, subDecoder, &decoderMutex)
} else {
livestreamCursor := queue.Latest()
go cloud.HandleLiveStreamSD(livestreamCursor, configuration, communication, mqttClient, decoder, &decoderMutex)
}
//if subStreamEnabled {
// livestreamCursor := subQueue.Latest()
// cloud.HandleLiveStreamSD(livestreamCursor, configuration, communication, mqttClient, subDecoder, &decoderMutex)
//} else {
livestreamCursor := queue.Latest()
go cloud.HandleLiveStreamSD(livestreamCursor, configuration, communication, mqttClient, decoder, &decoderMutex)
//}
// Handle livestream HD (high resolution over WEBRTC)
communication.HandleLiveHDHandshake = make(chan models.SDPPayload, 1)