Skip to content

Commit c21245a

Browse files
author
Rain Liu
committed
Fix typo for renegotiation
1 parent 7ca94de commit c21245a

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@ path = "examples/play-from-disk/play-from-disk.rs"
9898
bench = false
9999

100100
[[example]]
101-
name = "play-from-disk-renegotation"
102-
path = "examples/play-from-disk-renegotation/play-from-disk-renegotation.rs"
101+
name = "play-from-disk-renegotiation"
102+
path = "examples/play-from-disk-renegotiation/play-from-disk-renegotiation.rs"
103103
bench = false
104104

105105
[[example]]

examples/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ All examples are ported from [Pion](https://github.com/pion/webrtc/tree/master/e
77
#### Media API
88
- [x] [Reflect](reflect): The reflect example demonstrates how to have webrtc-rs send back to the user exactly what it receives using the same PeerConnection.
99
- [x] [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.
10-
- [x] [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.
10+
- [x] [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.
1111
- [x] [Insertable Streams](insertable-streams): The insertable-streams example demonstrates how webrtc-rs can be used to send E2E encrypted video and decrypt via insertable streams in the browser.
1212
- [x] [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.
1313
- [x] [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/play-from-disk-renegotation/index.html examples/play-from-disk-renegotiation/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<html>
22
<head>
3-
<title>play-from-disk-renegotation</title>
3+
<title>play-from-disk-renegotiation</title>
44
</head>
55

66
<body>

examples/play-from-disk-renegotation/play-from-disk-renegotation.rs examples/play-from-disk-renegotiation/play-from-disk-renegotiation.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ lazy_static! {
3737
static ref VIDEO_FILE: Arc<Mutex<Option<String>>> = Arc::new(Mutex::new(None));
3838
}
3939

40-
static INDEX: &str = "examples/play-from-disk-renegotation/index.html";
40+
static INDEX: &str = "examples/play-from-disk-renegotiation/index.html";
4141
static NOTFOUND: &[u8] = b"Not Found";
4242

4343
/// HTTP status code 404
@@ -224,10 +224,10 @@ async fn remove_video(
224224

225225
#[tokio::main]
226226
async fn main() -> Result<()> {
227-
let mut app = App::new("play-from-disk-renegotation")
227+
let mut app = App::new("play-from-disk-renegotiation")
228228
.version("0.1.0")
229229
.author("Rain Liu <[email protected]>")
230-
.about("An example of play-from-disk-renegotation.")
230+
.about("An example of play-from-disk-renegotiation.")
231231
.setting(AppSettings::DeriveDisplayOrder)
232232
.setting(AppSettings::SubcommandsNegateReqs)
233233
.arg(

0 commit comments

Comments
 (0)