Closed seydx closed 1 week ago
Connecting to a webrtc:ws:// source with go2rtc does not work anymore.
webrtc:ws://
Go2RTC Error: SetRemoteDescription called with no ice-ufrag
SetRemoteDescription called with no ice-ufrag
No issues with v1.9.4
The problem is that the String() function was changed: https://github.com/AlexxIT/go2rtc/commit/16e48314990d851368e57ffbe7b1afe5b01b5b15#diff-02fb0f2a331db3c6230c089797204d5d3a1bf6a460f59b7213789e8c8f44b92eR43
String()
And reading the answer now only returns an empty string instead of the value: https://github.com/AlexxIT/go2rtc/blob/8cca8decdefdb839040ca83143f8286ae3743ecb/internal/webrtc/client.go#L145
A quick fix would be:
answer := msg.Value.(string)
Or as discussed on Telegram, change the Message to a Request/Response struct
Fixed in master. Thanks for pointing exact place of problem!
Waiting 1.9.7 version, 1.9.6 (and 1.9.5) does not work for me into Home Assistant. Thanks to @seydx.
https://github.com/AlexxIT/go2rtc/releases/tag/v1.9.7
Connecting to a
webrtc:ws://
source with go2rtc does not work anymore.Go2RTC Error:
SetRemoteDescription called with no ice-ufrag
No issues with v1.9.4
The problem is that the
String()
function was changed: https://github.com/AlexxIT/go2rtc/commit/16e48314990d851368e57ffbe7b1afe5b01b5b15#diff-02fb0f2a331db3c6230c089797204d5d3a1bf6a460f59b7213789e8c8f44b92eR43And reading the answer now only returns an empty string instead of the value: https://github.com/AlexxIT/go2rtc/blob/8cca8decdefdb839040ca83143f8286ae3743ecb/internal/webrtc/client.go#L145
A quick fix would be:
Or as discussed on Telegram, change the Message to a Request/Response struct