diff --git a/AUTHORS.txt b/AUTHORS.txt index fcd8b1fa..4e39c495 100644 --- a/AUTHORS.txt +++ b/AUTHORS.txt @@ -150,6 +150,7 @@ ronan Ryan Shumate salmān aljammāz Sam Lancia +Sean DuBois Sean DuBois Sean DuBois Sean DuBois diff --git a/e2e/e2e_test.go b/e2e/e2e_test.go index 8cc51278..c19fe39e 100644 --- a/e2e/e2e_test.go +++ b/e2e/e2e_test.go @@ -91,7 +91,7 @@ func TestE2E_Audio(t *testing.T) { } var result string if err := page.RunScript( - "pc.setRemoteDescription(new RTCSessionDescription(JSON.parse(answer)))", + "pc.setRemoteDescription(JSON.parse(answer))", map[string]interface{}{"answer": string(answerBytes)}, &result, ); err != nil { @@ -231,7 +231,7 @@ func TestE2E_DataChannel(t *testing.T) { } var result string if err := page.RunScript( - "pc.setRemoteDescription(new RTCSessionDescription(JSON.parse(answer)))", + "pc.setRemoteDescription(JSON.parse(answer))", map[string]interface{}{"answer": string(answerBytes)}, &result, ); err != nil { diff --git a/examples/broadcast/README.md b/examples/broadcast/README.md index 07fe41e2..8fc5dd83 100644 --- a/examples/broadcast/README.md +++ b/examples/broadcast/README.md @@ -11,7 +11,7 @@ go get github.com/pion/webrtc/v3/examples/broadcast ``` ### Open broadcast example page -[jsfiddle.net](https://jsfiddle.net/ypcsbnu3/) You should see two buttons `Publish a Broadcast` and `Join a Broadcast` +[jsfiddle.net](https://jsfiddle.net/us4h58jx/) You should see two buttons `Publish a Broadcast` and `Join a Broadcast` ### Run Broadcast #### Linux/macOS diff --git a/examples/broadcast/jsfiddle/demo.js b/examples/broadcast/jsfiddle/demo.js index 946a5551..49734bbc 100644 --- a/examples/broadcast/jsfiddle/demo.js +++ b/examples/broadcast/jsfiddle/demo.js @@ -48,7 +48,7 @@ window.createSession = isPublisher => { } try { - pc.setRemoteDescription(new RTCSessionDescription(JSON.parse(atob(sd)))) + pc.setRemoteDescription(JSON.parse(atob(sd))) } catch (e) { alert(e) } diff --git a/examples/data-channels/README.md b/examples/data-channels/README.md index c9d9c45d..49b9130b 100644 --- a/examples/data-channels/README.md +++ b/examples/data-channels/README.md @@ -9,7 +9,7 @@ go get github.com/pion/webrtc/v3/examples/data-channels ``` ### Open data-channels example page -[jsfiddle.net](https://jsfiddle.net/t3johb5g/2/) +[jsfiddle.net](https://jsfiddle.net/e41tgovp/) ### Run data-channels, with your browsers SessionDescription as stdin In the jsfiddle the top textarea is your browser's session description, press `Copy browser SDP to clipboard` or copy the base64 string manually and: diff --git a/examples/data-channels/jsfiddle/demo.js b/examples/data-channels/jsfiddle/demo.js index c0e88a69..5dc394dc 100644 --- a/examples/data-channels/jsfiddle/demo.js +++ b/examples/data-channels/jsfiddle/demo.js @@ -42,7 +42,7 @@ window.startSession = () => { } try { - pc.setRemoteDescription(new RTCSessionDescription(JSON.parse(atob(sd)))) + pc.setRemoteDescription(JSON.parse(atob(sd))) } catch (e) { alert(e) } diff --git a/examples/insertable-streams/README.md b/examples/insertable-streams/README.md index c4bf0795..6f077f06 100644 --- a/examples/insertable-streams/README.md +++ b/examples/insertable-streams/README.md @@ -19,7 +19,7 @@ go get github.com/pion/webrtc/v3/examples/insertable-streams ``` ### Open insertable-streams example page -[jsfiddle.net](https://jsfiddle.net/uqr80Lak/) you should see two text-areas and a 'Start Session' button. You will also have a 'Decrypt' checkbox. +[jsfiddle.net](https://jsfiddle.net/t5xoaryc/) you should see two text-areas and a 'Start Session' button. You will also have a 'Decrypt' checkbox. When unchecked the browser will not decrypt the incoming video stream, so it will stop playing or display certificates. ### Run insertable-streams with your browsers SessionDescription as stdin diff --git a/examples/insertable-streams/jsfiddle/demo.js b/examples/insertable-streams/jsfiddle/demo.js index ff2be92d..9e9d5861 100644 --- a/examples/insertable-streams/jsfiddle/demo.js +++ b/examples/insertable-streams/jsfiddle/demo.js @@ -60,7 +60,7 @@ window.startSession = () => { } try { - pc.setRemoteDescription(new RTCSessionDescription(JSON.parse(atob(sd)))) + pc.setRemoteDescription(JSON.parse(atob(sd))) } catch (e) { alert(e) } diff --git a/examples/play-from-disk/README.md b/examples/play-from-disk/README.md index 15204ec9..2dfe70e3 100644 --- a/examples/play-from-disk/README.md +++ b/examples/play-from-disk/README.md @@ -20,7 +20,7 @@ go get github.com/pion/webrtc/v3/examples/play-from-disk ``` ### Open play-from-disk example page -[jsfiddle.net](https://jsfiddle.net/a1cz42op/) you should see two text-areas, 'Start Session' button and 'Copy browser SessionDescription to clipboard' +[jsfiddle.net](https://jsfiddle.net/8kup9mvn/) you should see two text-areas, 'Start Session' button and 'Copy browser SessionDescription to clipboard' ### Run play-from-disk with your browsers Session Description as stdin The `output.ivf` you created should be in the same directory as `play-from-disk`. In the jsfiddle press 'Copy browser Session Description to clipboard' or copy the base64 string manually. diff --git a/examples/play-from-disk/jsfiddle/demo.js b/examples/play-from-disk/jsfiddle/demo.js index f9afa945..d3c3dd63 100644 --- a/examples/play-from-disk/jsfiddle/demo.js +++ b/examples/play-from-disk/jsfiddle/demo.js @@ -42,7 +42,7 @@ window.startSession = () => { } try { - pc.setRemoteDescription(new RTCSessionDescription(JSON.parse(atob(sd)))) + pc.setRemoteDescription(JSON.parse(atob(sd))) } catch (e) { alert(e) } diff --git a/examples/reflect/README.md b/examples/reflect/README.md index 96e25a5a..32a35faa 100644 --- a/examples/reflect/README.md +++ b/examples/reflect/README.md @@ -9,7 +9,7 @@ go get github.com/pion/webrtc/v3/examples/reflect ``` ### Open reflect example page -[jsfiddle.net](https://jsfiddle.net/ogs7muqh/1/) you should see two text-areas and a 'Start Session' button. +[jsfiddle.net](https://jsfiddle.net/g643ft1k/) you should see two text-areas and a 'Start Session' button. ### Run reflect, with your browsers SessionDescription as stdin In the jsfiddle the top textarea is your browser's Session Description. Press `Copy browser SDP to clipboard` or copy the base64 string manually. diff --git a/examples/reflect/jsfiddle/demo.js b/examples/reflect/jsfiddle/demo.js index 7c1b6858..ced45c4c 100644 --- a/examples/reflect/jsfiddle/demo.js +++ b/examples/reflect/jsfiddle/demo.js @@ -39,7 +39,7 @@ window.startSession = () => { } try { - pc.setRemoteDescription(new RTCSessionDescription(JSON.parse(atob(sd)))) + pc.setRemoteDescription(JSON.parse(atob(sd))) } catch (e) { alert(e) } diff --git a/examples/rtcp-processing/README.md b/examples/rtcp-processing/README.md index 775bcc41..5ee354b7 100644 --- a/examples/rtcp-processing/README.md +++ b/examples/rtcp-processing/README.md @@ -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. diff --git a/examples/rtcp-processing/jsfiddle/demo.js b/examples/rtcp-processing/jsfiddle/demo.js index 41cd47c1..6f788f65 100644 --- a/examples/rtcp-processing/jsfiddle/demo.js +++ b/examples/rtcp-processing/jsfiddle/demo.js @@ -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) } diff --git a/examples/rtp-forwarder/README.md b/examples/rtp-forwarder/README.md index 27f59613..a2d59036 100644 --- a/examples/rtp-forwarder/README.md +++ b/examples/rtp-forwarder/README.md @@ -9,7 +9,7 @@ go get github.com/pion/webrtc/v3/examples/rtp-forwarder ``` ### Open rtp-forwarder example page -[jsfiddle.net](https://jsfiddle.net/xjcve6d3/) you should see your Webcam, two text-areas and `Copy browser SDP to clipboard`, `Start Session` buttons +[jsfiddle.net](https://jsfiddle.net/fm7btvr3/) you should see your Webcam, two text-areas and `Copy browser SDP to clipboard`, `Start Session` buttons ### Run rtp-forwarder, with your browsers SessionDescription as stdin In the jsfiddle the top textarea is your browser's Session Description. Press `Copy browser SDP to clipboard` or copy the base64 string manually. diff --git a/examples/rtp-forwarder/jsfiddle/demo.js b/examples/rtp-forwarder/jsfiddle/demo.js index 1eba38b9..b7e8d925 100644 --- a/examples/rtp-forwarder/jsfiddle/demo.js +++ b/examples/rtp-forwarder/jsfiddle/demo.js @@ -32,7 +32,7 @@ window.startSession = () => { } try { - pc.setRemoteDescription(new RTCSessionDescription(JSON.parse(atob(sd)))) + pc.setRemoteDescription(JSON.parse(atob(sd))) } catch (e) { alert(e) } diff --git a/examples/save-to-disk/README.md b/examples/save-to-disk/README.md index cf316e00..53ff188d 100644 --- a/examples/save-to-disk/README.md +++ b/examples/save-to-disk/README.md @@ -11,7 +11,7 @@ go get github.com/pion/webrtc/v3/examples/save-to-disk ``` ### Open save-to-disk example page -[jsfiddle.net](https://jsfiddle.net/xjcve6d3/) you should see your Webcam, two text-areas and two buttons: `Copy browser SDP to clipboard`, `Start Session`. +[jsfiddle.net](https://jsfiddle.net/s179hacu/) you should see your Webcam, two text-areas and two buttons: `Copy browser SDP to clipboard`, `Start Session`. ### Run save-to-disk, with your browsers SessionDescription as stdin In the jsfiddle the top textarea is your browser's Session Description. Press `Copy browser SDP to clipboard` or copy the base64 string manually. diff --git a/examples/save-to-disk/jsfiddle/demo.js b/examples/save-to-disk/jsfiddle/demo.js index d3ee36d9..64eb3d2b 100644 --- a/examples/save-to-disk/jsfiddle/demo.js +++ b/examples/save-to-disk/jsfiddle/demo.js @@ -33,7 +33,7 @@ window.startSession = () => { } try { - pc.setRemoteDescription(new RTCSessionDescription(JSON.parse(atob(sd)))) + pc.setRemoteDescription(JSON.parse(atob(sd))) } catch (e) { alert(e) } diff --git a/examples/simulcast/README.md b/examples/simulcast/README.md index 7d7ed4b4..5077f010 100644 --- a/examples/simulcast/README.md +++ b/examples/simulcast/README.md @@ -13,7 +13,7 @@ go get github.com/pion/webrtc/v3/examples/simulcast ``` ### Open simulcast example page -[jsfiddle.net](https://jsfiddle.net/zLebmv41/1/) you should see two text-areas and two buttons: `Copy browser SDP to clipboard`, `Start Session`. +[jsfiddle.net](https://jsfiddle.net/tz4d5bhj/) you should see two text-areas and two buttons: `Copy browser SDP to clipboard`, `Start Session`. ### Run simulcast, with your browsers SessionDescription as stdin In the jsfiddle the top textarea is your browser's Session Description. Press `Copy browser SDP to clipboard` or copy the base64 string manually. diff --git a/examples/simulcast/jsfiddle/demo.js b/examples/simulcast/jsfiddle/demo.js index cc0ebf3d..b7fbc664 100644 --- a/examples/simulcast/jsfiddle/demo.js +++ b/examples/simulcast/jsfiddle/demo.js @@ -85,7 +85,7 @@ window.startSession = () => { try { console.log('answer', JSON.parse(atob(sd))) - pc.setRemoteDescription(new RTCSessionDescription(JSON.parse(atob(sd)))) + pc.setRemoteDescription(JSON.parse(atob(sd))) } catch (e) { alert(e) } diff --git a/examples/swap-tracks/README.md b/examples/swap-tracks/README.md index c278f8a7..d5771592 100644 --- a/examples/swap-tracks/README.md +++ b/examples/swap-tracks/README.md @@ -9,7 +9,7 @@ go get github.com/pion/webrtc/v3/examples/swap-tracks ``` ### Open swap-tracks example page -[jsfiddle.net](https://jsfiddle.net/39w24tr6/1/) you should see two text-areas and two buttons: `Copy browser SDP to clipboard`, `Start Session`. +[jsfiddle.net](https://jsfiddle.net/1rx5on86/) you should see two text-areas and two buttons: `Copy browser SDP to clipboard`, `Start Session`. ### Run swap-tracks, with your browsers SessionDescription as stdin In the jsfiddle the top textarea is your browser's Session Description. Press `Copy browser SDP to clipboard` or copy the base64 string manually. diff --git a/examples/swap-tracks/jsfiddle/demo.js b/examples/swap-tracks/jsfiddle/demo.js index 7688b8eb..52d3479e 100644 --- a/examples/swap-tracks/jsfiddle/demo.js +++ b/examples/swap-tracks/jsfiddle/demo.js @@ -68,7 +68,7 @@ window.startSession = () => { } try { - pc.setRemoteDescription(new RTCSessionDescription(JSON.parse(atob(sd)))) + pc.setRemoteDescription(JSON.parse(atob(sd))) } catch (e) { alert(e) }