Skip to content

Commit 1390b16

Browse files
shellflySean-Der
authored andcommitted
Fix typo 'Renegotation' across project
'Renegotation' -> 'Renegotiation'
1 parent f0dc0db commit 1390b16

File tree

7 files changed

+10
-10
lines changed

7 files changed

+10
-10
lines changed

examples/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ For more full featured examples that use 3rd party libraries see our **[example-
1010
#### Media API
1111
* [Reflect](reflect): The reflect example demonstrates how to have Pion send back to the user exactly what it receives using the same PeerConnection.
1212
* [Play from Disk](play-from-disk): The play-from-disk example demonstrates how to send video to your browser from a file saved to disk.
13-
* [Play from Disk Renegotation](play-from-disk-renegotation): The play-from-disk-renegotation example is an extension of the play-from-disk example, but demonstrates how you can add/remove video tracks from an already negotiated PeerConnection.
13+
* [Play from Disk Renegotiation](play-from-disk-renegotiation): The play-from-disk-renegotiation example is an extension of the play-from-disk example, but demonstrates how you can add/remove video tracks from an already negotiated PeerConnection.
1414
* [Insertable Streams](insertable-streams): The insertable-streams example demonstrates how Pion can be used to send E2E encrypted video and decrypt via insertable streams in the browser.
1515
* [Save to Disk](save-to-disk): The save-to-disk example shows how to record your webcam and save the footage to disk on the server side.
1616
* [Broadcast](broadcast): The broadcast example demonstrates how to broadcast a video to multiple peers. A broadcaster uploads the video once and the server forwards it to all other peers.

examples/examples.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@
3636
"type": "browser"
3737
},
3838
{
39-
"title": "Play from Disk Renegotation",
39+
"title": "Play from Disk Renegotiation",
4040
"link": "play-from-disk",
41-
"description": "The play-from-disk-renegotation example is an extension of the play-from-disk example, but demonstrates how you can add/remove video tracks from an already negotiated PeerConnection.",
41+
"description": "The play-from-disk-renegotiation example is an extension of the play-from-disk example, but demonstrates how you can add/remove video tracks from an already negotiated PeerConnection.",
4242
"type": "browser"
4343
},
4444
{
File renamed without changes.

examples/play-from-disk-renegotation/index.html renamed to examples/play-from-disk-renegotiation/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
SPDX-License-Identifier: MIT
55
-->
66
<head>
7-
<title>play-from-disk-renegotation</title>
7+
<title>play-from-disk-renegotiation</title>
88
</head>
99

1010
<body>

examples/play-from-disk-renegotation/main.go renamed to examples/play-from-disk-renegotiation/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
//go:build !js
55
// +build !js
66

7-
// play-from-disk-renegotation demonstrates Pion WebRTC's renegotiation abilities.
7+
// play-from-disk-renegotiation demonstrates Pion WebRTC's renegotiation abilities.
88
package main
99

1010
import (

peerconnection.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1039,7 +1039,7 @@ func (pc *PeerConnection) SetRemoteDescription(desc SessionDescription) error {
10391039
return &rtcerr.InvalidStateError{Err: ErrConnectionClosed}
10401040
}
10411041

1042-
isRenegotation := pc.currentRemoteDescription != nil
1042+
isRenegotiation := pc.currentRemoteDescription != nil
10431043

10441044
if _, err := desc.Unmarshal(); err != nil {
10451045
return err
@@ -1142,7 +1142,7 @@ func (pc *PeerConnection) SetRemoteDescription(desc SessionDescription) error {
11421142
return err
11431143
}
11441144

1145-
if isRenegotation && pc.iceTransport.haveRemoteCredentialsChange(remoteUfrag, remotePwd) {
1145+
if isRenegotiation && pc.iceTransport.haveRemoteCredentialsChange(remoteUfrag, remotePwd) {
11461146
// An ICE Restart only happens implicitly for a SetRemoteDescription of type offer
11471147
if !weOffer {
11481148
if err = pc.iceTransport.restart(); err != nil {
@@ -1163,7 +1163,7 @@ func (pc *PeerConnection) SetRemoteDescription(desc SessionDescription) error {
11631163

11641164
currentTransceivers := append([]*RTPTransceiver{}, pc.GetTransceivers()...)
11651165

1166-
if isRenegotation {
1166+
if isRenegotiation {
11671167
if weOffer {
11681168
_ = setRTPTransceiverCurrentDirection(&desc, currentTransceivers, true)
11691169
if err = pc.startRTPSenders(currentTransceivers); err != nil {

peerconnection_renegotiation_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -716,7 +716,7 @@ func TestPeerConnection_Renegotiation_SetLocalDescription(t *testing.T) {
716716
}
717717

718718
// Issue #346, don't start the SCTP Subsystem if the RemoteDescription doesn't contain one
719-
// Before we would always start it, and re-negotations would fail because SCTP was in flight
719+
// Before we would always start it, and re-negotiations would fail because SCTP was in flight
720720
func TestPeerConnection_Renegotiation_NoApplication(t *testing.T) {
721721
signalPairExcludeDataChannel := func(pcOffer, pcAnswer *PeerConnection) {
722722
offer, err := pcOffer.CreateOffer(nil)
@@ -785,7 +785,7 @@ func TestPeerConnection_Renegotiation_NoApplication(t *testing.T) {
785785
closePairNow(t, pcOffer, pcAnswer)
786786
}
787787

788-
func TestAddDataChannelDuringRenegotation(t *testing.T) {
788+
func TestAddDataChannelDuringRenegotiation(t *testing.T) {
789789
lim := test.TimeOut(time.Second * 10)
790790
defer lim.Stop()
791791

0 commit comments

Comments
 (0)