Support adding streams on the fly

This commit is contained in:
Alexey Khit
2022-08-18 23:53:24 +03:00
parent 6dceed64ed
commit 7c23625a24
5 changed files with 46 additions and 7 deletions
+1 -1
View File
@@ -79,7 +79,7 @@ func handler(w http.ResponseWriter, r *http.Request) {
return
}
stream := streams.NewStream(url)
stream := streams.Get(url)
str, err = webrtc.ExchangeSDP(stream, string(offer), r.UserAgent())
if err != nil {
log.Error().Err(err).Msg("[api.hass] exchange SDP")