Skip to content

Commit 38fdb70

Browse files
committed
Fix save to disk examples
1 parent bdfe07a commit 38fdb70

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

examples/save-to-disk-av1/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ go install github.com/pion/webrtc/v4/examples/save-to-disk-av1@latest
1414
```
1515

1616
### Open save-to-disk-av1 example page
17-
[jsfiddle.net](https://jsfiddle.net/xjcve6d3/) you should see your Webcam, two text-areas and two buttons: `Copy browser SDP to clipboard`, `Start Session`.
17+
[jsfiddle.net](https://jsfiddle.net/8jv91r25/) you should see your Webcam, two text-areas and two buttons: `Copy browser SDP to clipboard`, `Start Session`.
1818

1919
### Run save-to-disk-av1, with your browsers SessionDescription as stdin
2020
In the jsfiddle the top textarea is your browser's Session Description. Press `Copy browser SDP to clipboard` or copy the base64 string manually.

examples/save-to-disk/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ go install github.com/pion/webrtc/v4/examples/save-to-disk@latest
1616
```
1717

1818
### Open save-to-disk example page
19-
[jsfiddle.net](https://jsfiddle.net/s179hacu/) you should see your Webcam, two text-areas and two buttons: `Copy browser SDP to clipboard`, `Start Session`.
19+
[jsfiddle.net](https://jsfiddle.net/2nwt1vjq/) you should see your Webcam, two text-areas and two buttons: `Copy browser SDP to clipboard`, `Start Session`.
2020

2121
### Run save-to-disk, with your browsers SessionDescription as stdin
2222
In the jsfiddle the top textarea is your browser's Session Description. Press `Copy browser SDP to clipboard` or copy the base64 string manually.

examples/save-to-disk/jsfiddle/demo.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,7 @@ navigator.mediaDevices.getUserMedia({ video: true, audio: true })
2424

2525
pc.oniceconnectionstatechange = e => log(pc.iceConnectionState)
2626
pc.onicecandidate = event => {
27-
if (event.candidate === null) {
28-
document.getElementById('localSessionDescription').value = btoa(JSON.stringify(pc.localDescription))
29-
}
27+
document.getElementById('localSessionDescription').value = btoa(JSON.stringify(pc.localDescription))
3028
}
3129

3230
window.startSession = () => {

0 commit comments

Comments
 (0)