mirror of
https://github.com/pion/webrtc.git
synced 2025-10-04 14:53:05 +08:00
Remove new RTCSessionDescription
pattern
SetRemoteDescription accepts a RTCSessionDescriptionInit so this is no longer needed Resolves #2324
This commit is contained in:
@@ -40,7 +40,7 @@ window.startSession = () => {
|
||||
}
|
||||
|
||||
try {
|
||||
pc.setRemoteDescription(new RTCSessionDescription(JSON.parse(atob(sd))))
|
||||
pc.setRemoteDescription(JSON.parse(atob(sd)))
|
||||
} catch (e) {
|
||||
alert(e)
|
||||
}
|
||||
|
Reference in New Issue
Block a user