implement skill handling and media configuration

This commit is contained in:
seydx
2025-05-11 00:51:17 +02:00
parent e74fc6f198
commit 30d48e139c
3 changed files with 101 additions and 40 deletions
+2 -2
View File
@@ -63,12 +63,12 @@ func (c *Conn) SetAnswer(answer string) (err error) {
SDP: fakeFormatsInAnswer(c.pc.LocalDescription().SDP, answer),
}
if err = c.pc.SetRemoteDescription(desc); err != nil {
return
return err
}
sd := &sdp.SessionDescription{}
if err = sd.Unmarshal([]byte(answer)); err != nil {
return
return err
}
c.Medias = UnmarshalMedias(sd.MediaDescriptions)