Skip to content

Commit 23f41ab

Browse files
committed
Add language specifiers for markdown code blocks
1 parent 9783e1f commit 23f41ab

File tree

22 files changed

+32
-32
lines changed

22 files changed

+32
-32
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ All webrtc dependent crates and examples are included in this repository at the
121121

122122
To build all webrtc examples:
123123

124-
```
124+
```shell
125125
cd examples
126126
cargo test # build all examples (maybe very slow)
127127
#[ or just build single example (much faster)
@@ -133,7 +133,7 @@ cargo build --example play-from-disk-h264 # build play-from-disk-h264 example on
133133

134134
To build webrtc crate:
135135

136-
```
136+
```shell
137137
cargo build [or clippy or test or fmt]
138138
```
139139

dtls/examples/certificates/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ $ rm "${EXTFILE}" "${SERVER_NAME}.csr" "${CLIENT_NAME}.csr"
2626
```
2727

2828
in pion/examples/util/util.go, convert ECPrivateKey to PKCS8PrivateKey
29-
```
29+
```go
3030
func LoadKey(path string) (crypto.PrivateKey, error) {
3131
....
3232
if key, err := x509.ParseECPrivateKey(block.Bytes); err == nil {

examples/examples/broadcast/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ This could serve as the building block to building conferencing software, and ot
55

66
## Instructions
77
### Build broadcast
8-
```
8+
```shell
99
cargo build --example broadcast
1010
```
1111

examples/examples/data-channels-create/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ data-channels-create is a WebRTC.rs application that shows how you can send/recv
33

44
## Instructions
55
### Build data-channels-create
6-
```
6+
```shell
77
cargo build --example data-channels-create
88
```
99

examples/examples/data-channels-detach-create/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ This allows direct access the the underlying [webrtc-rs/data](https://github.com
66
The example mirrors the data-channels-create example.
77

88
## Install
9-
```
9+
```shell
1010
cargo build --example data-channels-detach-create
1111
```
1212

examples/examples/data-channels-detach/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ data-channels is a WebRTC.rs application that shows how you can send/recv DataCh
33

44
## Instructions
55
### Build data-channels-detach
6-
```
6+
```shell
77
cargo build --example data-channels-detach
88
```
99

examples/examples/data-channels-flow-control/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ application to pace the amount of data to be pushed into the data channel.
2525
## How to run the example code
2626
The demo code implements two endpoints (requester and responder) in it.
2727

28-
```
28+
```plain
2929
signaling messages
3030
+----------------------------------------+
3131
| |
@@ -45,7 +45,7 @@ Once the data channel is successfully opened, requester will start sending a ser
4545

4646
Here's how to run the code:
4747

48-
```
48+
```shell
4949
$ cargo run --release --example data-channels-flow-control
5050
Finished release [optimized] target(s) in 0.36s
5151
Running `target\release\examples\data-channels-flow-control.exe`

examples/examples/data-channels/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ data-channels is a WebRTC.rs application that shows how you can send/recv DataCh
33

44
## Instructions
55
### Build data-channels
6-
```
6+
shell
77
cargo build --example data-channels
88
```
99

examples/examples/ice-restart/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ ice-restart demonstrates WebRTC.rs ICE Restart abilities.
44
## Instructions
55

66
### Build ice-restart
7-
```
7+
```shell
88
cargo build --example ice-restart
99
```
1010

1111
### Run ice-restart
12-
```
12+
```shell
1313
cargo run --example ice-restart
1414
```
1515

examples/examples/insertable-streams/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ E2E encyption, add metadata or insert a completely different video feed!
88

99
## Instructions
1010
### Create IVF named `output.ivf` that contains a VP8 track
11-
```
11+
shell
1212
ffmpeg -i $INPUT_FILE -g 30 output.ivf
1313
```
1414
1515
### Build insertable-streams
16-
```
16+
```shell
1717
cargo build --example insertable-streams
1818
```
1919

examples/examples/offer-answer/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ The `answer` side acts like a HTTP server and should therefore be ran first.
66

77
## Instructions
88
First run `answer`:
9-
```sh
9+
```shell
1010
cargo build --example answer
1111
./target/debug/examples/answer
1212
```
1313
Next, run `offer`:
14-
```sh
14+
```shell
1515
cargo build --example offer
1616
./target/debug/examples/offer
1717
```

examples/examples/ortc/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ In this example we have defined a simple JSON based signaling protocol.
88

99
## Instructions
1010
### Build ortc
11-
```
11+
```shell
1212
cargo build --example ortc
1313
```
1414

examples/examples/play-from-disk-h264/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ play-from-disk-h264 demonstrates how to send h264 video and/or audio to your bro
33

44
## Instructions
55
### Create IVF named `output.264` that contains a H264 track and/or `output.ogg` that contains a Opus track
6-
```
6+
```shell
77
ffmpeg -i $INPUT_FILE -an -c:v libx264 -bsf:v h264_mp4toannexb -b:v 2M -max_delay 0 -bf 0 output.h264
88
ffmpeg -i $INPUT_FILE -c:a libopus -page_duration 20000 -vn output.ogg
99
```
1010

1111
### Build play-from-disk-h264
12-
```
12+
```shell
1313
cargo build --example play-from-disk-h264
1414
```
1515

examples/examples/play-from-disk-renegotiation/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ For a simpler example of playing a file from disk we also have [examples/play-fr
66
## Instructions
77

88
### Build play-from-disk-renegotiation
9-
```
9+
```shell
1010
cargo build --example play-from-disk-renegotiation
1111
```
1212

1313
### Create IVF named `output.ivf` that contains a VP8 track
14-
```
14+
```shell
1515
ffmpeg -i $INPUT_FILE -g 30 output.ivf
1616
```
1717

examples/examples/play-from-disk-vpx/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ play-from-disk-vpx demonstrates how to send vp8/vp8 video and/or audio to your b
33

44
## Instructions
55
### Create IVF named `output_vp8.ivf` or `output_vp9.ivf` that contains a VP8/VP9 track and/or `output.ogg` that contains a Opus track
6-
```
6+
```shell
77
ffmpeg -i $INPUT_FILE -g 30 output_vp8.ivf
88
ffmpeg -i $INPUT_FILE -g 30 -c libvpx-vp9 output_vp9.ivf
99
ffmpeg -i $INPUT_FILE -map 0:a -c:a dca -ac 2 -c:a libopus -page_duration 20000 -vn output.ogg
1010
```
1111

1212
### Build play-from-disk-vpx
13-
```
13+
```shell
1414
cargo build --example play-from-disk-vpx
1515
```
1616

examples/examples/reflect/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ reflect demonstrates how with one PeerConnection you can send video to webrtc-rs
33

44
## Instructions
55
### Build reflect
6-
```
6+
```shell
77
cargo build --example reflect
88
```
99

examples/examples/rtp-forwarder/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ rtp-forwarder is a simple application that shows how to forward your webcam/micr
33

44
## Instructions
55
### Build rtp-forwarder
6-
```
6+
```shell
77
cargo build --example rtp-forwarder
88
```
99

examples/examples/rtp-to-webrtc/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ With this example we have pre-made GStreamer and ffmpeg pipelines, but you can u
55

66
## Instructions
77
### Build rtp-to-webrtc
8-
```
8+
```shell
99
cargo build --example rtp-to-webrtc
1010
```
1111

@@ -28,12 +28,12 @@ You can use any software to send VP8 packets to port 5004. We also have the pre
2828

2929

3030
#### GStreamer
31-
```
31+
```shell
3232
gst-launch-1.0 videotestsrc ! video/x-raw,width=640,height=480,format=I420 ! vp8enc error-resilient=partitions keyframe-max-dist=10 auto-alt-ref=true cpu-used=5 deadline=1 ! rtpvp8pay ! udpsink host=127.0.0.1 port=5004
3333
```
3434

3535
#### ffmpeg
36-
```
36+
```shell
3737
ffmpeg -re -f lavfi -i testsrc=size=640x480:rate=30 -vcodec libvpx -cpu-used 5 -deadline 1 -g 10 -error-resilient 1 -auto-alt-ref 1 -f rtp rtp://127.0.0.1:5004?pkt_size=1200
3838
```
3939

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ save-to-disk-h264 is a simple application that shows how to record your webcam/m
33

44
## Instructions
55
### Build save-to-disk-h264
6-
```
6+
```shell
77
cargo build --example save-to-disk-h264
88
```
99

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ save-to-disk-vpx is a simple application that shows how to record your webcam/mi
33

44
## Instructions
55
### Build save-to-disk-vpx
6-
```
6+
```shell
77
cargo build --example save-to-disk-vpx
88
```
99

examples/examples/simulcast/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ is selected.
77

88
## Instructions
99
### Build simulcast
10-
```
10+
shell
1111
cargo build --example simulcast
1212
```
1313

examples/examples/swap-tracks/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ swap-tracks demonstrates how to swap multiple incoming tracks on a single outgoi
33

44
## Instructions
55
### Build swap-tracks
6-
```
6+
```shell
77
cargo build --example swap-tracks
88
```
99

0 commit comments

Comments
 (0)