From c21245a7dc684f1db9d67fee7e65fe6c2c8ac74b Mon Sep 17 00:00:00 2001 From: Rain Liu Date: Fri, 24 Sep 2021 13:58:33 -0700 Subject: [PATCH] Fix typo for renegotiation --- Cargo.toml | 4 ++-- examples/README.md | 2 +- .../README.md | 0 .../index.html | 2 +- .../play-from-disk-renegotiation.rs} | 6 +++--- 5 files changed, 7 insertions(+), 7 deletions(-) rename examples/{play-from-disk-renegotation => play-from-disk-renegotiation}/README.md (100%) rename examples/{play-from-disk-renegotation => play-from-disk-renegotiation}/index.html (97%) rename examples/{play-from-disk-renegotation/play-from-disk-renegotation.rs => play-from-disk-renegotiation/play-from-disk-renegotiation.rs} (98%) diff --git a/Cargo.toml b/Cargo.toml index ccf4dec4c..e9e2d96f5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -98,8 +98,8 @@ path = "examples/play-from-disk/play-from-disk.rs" bench = false [[example]] -name = "play-from-disk-renegotation" -path = "examples/play-from-disk-renegotation/play-from-disk-renegotation.rs" +name = "play-from-disk-renegotiation" +path = "examples/play-from-disk-renegotiation/play-from-disk-renegotiation.rs" bench = false [[example]] diff --git a/examples/README.md b/examples/README.md index b8d4c2eda..e136386ea 100644 --- a/examples/README.md +++ b/examples/README.md @@ -7,7 +7,7 @@ All examples are ported from [Pion](https://github.com/pion/webrtc/tree/master/e #### Media API - [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. - [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. -- [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. +- [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. - [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. - [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. - [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. diff --git a/examples/play-from-disk-renegotation/README.md b/examples/play-from-disk-renegotiation/README.md similarity index 100% rename from examples/play-from-disk-renegotation/README.md rename to examples/play-from-disk-renegotiation/README.md diff --git a/examples/play-from-disk-renegotation/index.html b/examples/play-from-disk-renegotiation/index.html similarity index 97% rename from examples/play-from-disk-renegotation/index.html rename to examples/play-from-disk-renegotiation/index.html index f1e1c7eb8..77130feaf 100644 --- a/examples/play-from-disk-renegotation/index.html +++ b/examples/play-from-disk-renegotiation/index.html @@ -1,6 +1,6 @@ - play-from-disk-renegotation + play-from-disk-renegotiation diff --git a/examples/play-from-disk-renegotation/play-from-disk-renegotation.rs b/examples/play-from-disk-renegotiation/play-from-disk-renegotiation.rs similarity index 98% rename from examples/play-from-disk-renegotation/play-from-disk-renegotation.rs rename to examples/play-from-disk-renegotiation/play-from-disk-renegotiation.rs index 92824ae41..68b6671cb 100644 --- a/examples/play-from-disk-renegotation/play-from-disk-renegotation.rs +++ b/examples/play-from-disk-renegotiation/play-from-disk-renegotiation.rs @@ -37,7 +37,7 @@ lazy_static! { static ref VIDEO_FILE: Arc>> = Arc::new(Mutex::new(None)); } -static INDEX: &str = "examples/play-from-disk-renegotation/index.html"; +static INDEX: &str = "examples/play-from-disk-renegotiation/index.html"; static NOTFOUND: &[u8] = b"Not Found"; /// HTTP status code 404 @@ -224,10 +224,10 @@ async fn remove_video( #[tokio::main] async fn main() -> Result<()> { - let mut app = App::new("play-from-disk-renegotation") + let mut app = App::new("play-from-disk-renegotiation") .version("0.1.0") .author("Rain Liu ") - .about("An example of play-from-disk-renegotation.") + .about("An example of play-from-disk-renegotiation.") .setting(AppSettings::DeriveDisplayOrder) .setting(AppSettings::SubcommandsNegateReqs) .arg(