Remove new RTCSessionDescription pattern

SetRemoteDescription accepts a RTCSessionDescriptionInit so this is no
longer needed

Resolves #2324
This commit is contained in:
Sean DuBois
2022-10-24 22:30:18 -04:00
committed by Sean DuBois
parent e66501e359
commit 9c47fea3f2
22 changed files with 23 additions and 22 deletions

View File

@@ -16,7 +16,7 @@ go get github.com/pion/webrtc/v3/examples/rtcp-processing
```
### Open rtcp-processing example page
[jsfiddle.net](https://jsfiddle.net/Le3zg7sd/) you should see two text-areas, 'Start Session' button and 'Copy browser SessionDescription to clipboard'
[jsfiddle.net](https://jsfiddle.net/zurq6j7x/) you should see two text-areas, 'Start Session' button and 'Copy browser SessionDescription to clipboard'
### Run rtcp-processing with your browsers Session Description as stdin
In the jsfiddle press 'Copy browser Session Description to clipboard' or copy the base64 string manually.

View File

@@ -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)
}