Skip to content

Commit

Permalink
Fix typo for renegotiation
Browse files Browse the repository at this point in the history
  • Loading branch information
Rain Liu committed Sep 24, 2021
1 parent 7ca94de commit c21245a
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]]
Expand Down
2 changes: 1 addition & 1 deletion examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<html>
<head>
<title>play-from-disk-renegotation</title>
<title>play-from-disk-renegotiation</title>
</head>

<body>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ lazy_static! {
static ref VIDEO_FILE: Arc<Mutex<Option<String>>> = 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
Expand Down Expand Up @@ -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 <yuliu@webrtc.rs>")
.about("An example of play-from-disk-renegotation.")
.about("An example of play-from-disk-renegotiation.")
.setting(AppSettings::DeriveDisplayOrder)
.setting(AppSettings::SubcommandsNegateReqs)
.arg(
Expand Down

0 comments on commit c21245a

Please sign in to comment.