mirror of
https://github.com/pion/webrtc.git
synced 2025-10-05 07:06:51 +08:00
Remove new RTCSessionDescription
pattern
SetRemoteDescription accepts a RTCSessionDescriptionInit so this is no longer needed Resolves #2324
This commit is contained in:
@@ -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.
|
||||
|
@@ -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