| /webrtc/media/src/audio/ |
| H A D | sample.rs | 14 fn from(raw: i16) -> Self { in from() method 153 Sample::<i16>::from(Sample::<f32>::from(-1.0)), in sample_i16_from_sample_f32() 157 Sample::<i16>::from(Sample::<f32>::from(-0.5)), in sample_i16_from_sample_f32() 161 Sample::<i16>::from(Sample::<f32>::from(0.0)), in sample_i16_from_sample_f32() 165 Sample::<i16>::from(Sample::<f32>::from(0.5)), in sample_i16_from_sample_f32() 169 Sample::<i16>::from(Sample::<f32>::from(1.0)), in sample_i16_from_sample_f32() 177 Sample::<f32>::from(Sample::<i16>::from(i16::MIN)), in sample_f32_from_sample_i16() 181 Sample::<f32>::from(Sample::<i16>::from(i16::MIN / 2)), in sample_f32_from_sample_i16() 185 Sample::<f32>::from(Sample::<i16>::from(0)), in sample_f32_from_sample_i16() 189 Sample::<f32>::from(Sample::<i16>::from(i16::MAX / 2)), in sample_f32_from_sample_i16() [all …]
|
| /webrtc/constraints/src/ |
| H A D | constraint.rs | 89 fn from(bare: bool) -> Self { in from() method 109 fn from(bare: u64) -> Self { in from() method 129 fn from(bare: f64) -> Self { in from() method 155 fn from(bare: Vec<&str>) -> Self { in from() method 157 Self::from(bare) in from() 176 fn from(bare: String) -> Self { in from() method 182 fn from(bare: &'a str) -> Self { in from() method 184 Self::from(bare) in from() 478 mod from { module 507 Subject::from(false), in bool() [all …]
|
| H A D | setting.rs | 40 fn from(setting: bool) -> Self { in from() method 46 fn from(setting: i64) -> Self { in from() method 52 fn from(setting: f64) -> Self { in from() method 58 fn from(setting: String) -> Self { in from() method 64 fn from(setting: &'a str) -> Self { in from() method 75 mod from { module 80 let actual = Subject::from(true); in bool() 88 let actual = Subject::from(42); in integer() 96 let actual = Subject::from(4.2); in float() 114 assert_eq!(Subject::from(42).to_string(), "42"); in to_string() [all …]
|
| H A D | capability.rs | 51 fn from(capability: bool) -> Self { in from() method 57 fn from(capability: Vec<bool>) -> Self { in from() method 75 fn from(capability: String) -> Self { in from() method 81 fn from(capability: &'a str) -> Self { in from() method 83 Self::from(capability) in from() 88 fn from(capability: Vec<String>) -> Self { in from() method 94 fn from(capability: Vec<&str>) -> Self { in from() method 96 Self::from(capability) in from() 106 mod from { module 119 let actual = Subject::from(true); in bool() [all …]
|
| /webrtc/examples/examples/play-from-disk-renegotiation/ |
| H A D | README.md | 1 # play-from-disk-renegotiation 3 play-from-disk-renegotiation demonstrates WebRTC.rs's renegotiation abilities. 5 For a simpler example of playing a file from disk we also have [examples/play-from-disk](/examples/… 9 ### Build play-from-disk-renegotiation 12 cargo build --example play-from-disk-renegotiation 21 ### Run play-from-disk-renegotiation 23 The `output.ivf` you created should be in the same directory as `play-from-disk-renegotiation`.
|
| /webrtc/examples/examples/play-from-disk-vpx/ |
| H A D | README.md | 1 # play-from-disk-vpx 3 play-from-disk-vpx demonstrates how to send vp8/vp8 video and/or audio to your browser from files s… 15 ### Build play-from-disk-vpx 18 cargo build --example play-from-disk-vpx 21 ### Open play-from-disk-vpx example page 25 ### Run play-from-disk-vpx with your browsers SessionDescription as stdin 37 2. Run `./target/debug/examples/play-from-disk-vpx -v examples/test-data/output_vp8.ivf -a examples… 38 3. Run `./target/debug/examples/play-from-disk-vpx -v examples/test-data/output_vp9.ivf -a examples… 40 ### Input play-from-disk-vpx's SessionDescription into your browser 42 Copy the text that `play-from-disk-vpx` just emitted and copy into second text area [all …]
|
| /webrtc/examples/examples/play-from-disk-h264/ |
| H A D | README.md | 1 # play-from-disk-h264 3 play-from-disk-h264 demonstrates how to send h264 video and/or audio to your browser from files sav… 14 ### Build play-from-disk-h264 17 cargo build --example play-from-disk-h264 20 ### Open play-from-disk-h264 example page 24 ### Run play-from-disk-h264 with your browsers SessionDescription as stdin 30 Run `echo $BROWSER_SDP | ./target/debug/examples/play-from-disk-h264 -v examples/test-data/output.h… 35 1. Run `./target/debug/examples/play-from-disk-h264 -v examples/test-data/output.h264 -a examples/t… 37 ### Input play-from-disk-h264's SessionDescription into your browser 39 Copy the text that `play-from-disk-h264` just emitted and copy into second text area [all …]
|
| /webrtc/webrtc/src/ |
| H A D | error.rs | 359 from, 388 Util(#[from] util::Error), 390 Ice(#[from] ice::Error), 392 Srtp(#[from] srtp::Error), 394 Dtls(#[from] dtls::Error), 396 Data(#[from] data::Error), 398 Sctp(#[from] sctp::Error), 400 Sdp(#[from] sdp::Error), 404 Rtcp(#[from] rtcp::Error), 406 Rtp(#[from] rtp::Error), [all …]
|
| /webrtc/ice/src/ |
| H A D | error.rs | 198 ParseInt(#[from] ParseIntError), 200 ParseIp(#[from] net::AddrParseError), 204 Util(#[from] util::Error), 206 Stun(#[from] stun::Error), 208 ParseUrl(#[from] url::ParseError), 210 Mdns(#[from] mdns::Error), 212 Turn(#[from] turn::Error), 220 pub struct IoError(#[from] pub io::Error); 230 fn from(e: io::Error) -> Self { in from() method 236 fn from(e: SystemTimeError) -> Self { in from() method
|
| /webrtc/rtp/src/codecs/vp9/ |
| H A D | vp9_test.rs | 246 ("SmallMTU", vec![Bytes::from(vec![0x00, 0x00])], 1, vec![]), in test_vp9_payloader_payload() 249 vec![Bytes::from(vec![0x00, 0x00])], in test_vp9_payloader_payload() 255 vec![Bytes::from(vec![0x01, 0x02])], in test_vp9_payloader_payload() 257 vec![Bytes::from(vec![ in test_vp9_payloader_payload() 267 vec![Bytes::from(vec![0x01, 0x02])], in test_vp9_payloader_payload() 270 Bytes::from(vec![0x98, rands[0][0], rands[0][1], 0x01]), in test_vp9_payloader_payload() 271 Bytes::from(vec![0x94, rands[0][0], rands[0][1], 0x02]), in test_vp9_payloader_payload() 276 vec![Bytes::from(vec![0x01, 0x02, 0x03])], in test_vp9_payloader_payload() 279 Bytes::from(vec![0x98, rands[0][0], rands[0][1], 0x01]), in test_vp9_payloader_payload() 280 Bytes::from(vec![0x90, rands[0][0], rands[0][1], 0x02]), in test_vp9_payloader_payload() [all …]
|
| /webrtc/dtls/src/ |
| H A D | error.rs | 155 Util(#[from] util::Error), 157 Utf8(#[from] FromUtf8Error), 163 RcGen(#[from] RcgenError), 167 KeyingMaterial(#[from] KeyingMaterialExporterError), 180 pub struct IoError(#[from] pub io::Error); 190 fn from(e: io::Error) -> Self { in from() method 196 fn from(e: sec1::Error) -> Self { in from() method 212 fn from(e: p256::elliptic_curve::Error) -> Self { in from() method 218 fn from(e: block_modes::InvalidKeyIvLength) -> Self { in from() method 223 fn from(e: block_modes::BlockModeError) -> Self { in from() method [all …]
|
| /webrtc/constraints/src/capability/ |
| H A D | value_range.rs | 49 fn from(range: RangeInclusive<T>) -> Self { in from() method 59 fn from(range: RangeFrom<T>) -> Self { in from() method 68 fn from(range: RangeToInclusive<T>) -> Self { in from() method 113 mod from { module 118 let subject = Subject::from(1..=5); in range_inclusive() 126 let subject = Subject::from(1..); in range_from() 134 let subject = Subject::from(..=5); in range_to_inclusive() 156 let subject = Subject::from(1..=5); in from_range_inclusive() 166 let subject = Subject::from(1..); in from_range_from() 176 let subject = Subject::from(..=5); in from_range_to_inclusive()
|
| H A D | value_sequence.rs | 25 fn from(value: T) -> Self { in from() method 33 fn from(values: Vec<T>) -> Self { in from() method 55 mod from { module 60 let subject = Subject::from("foo".to_owned()); in value() 71 let subject = Subject::from(vec!["foo".to_owned(), "bar".to_owned()]); in values()
|
| /webrtc/util/src/vnet/ |
| H A D | nat.rs | 158 from: &(dyn Chunk + Send + Sync), in translate_outbound() 160 let mut to = from.clone_to(); in translate_outbound() 162 if from.network() == UDP_STR { in translate_outbound() 172 from in translate_outbound() 277 from, in translate_outbound() 291 let mut to = from.clone_to(); in translate_inbound() 293 if from.network() == UDP_STR { in translate_inbound() 303 from, in translate_inbound() 326 from, in translate_inbound() 345 from, in translate_inbound() [all …]
|
| /webrtc/ice/src/tcp_type/ |
| H A D | tcp_type_test.rs | 7 assert_eq!(TcpType::from("active"), TcpType::Active); in test_tcp_type() 8 assert_eq!(TcpType::from("passive"), TcpType::Passive); in test_tcp_type() 9 assert_eq!(TcpType::from("so"), TcpType::SimultaneousOpen); in test_tcp_type() 10 assert_eq!(TcpType::from("something else"), TcpType::Unspecified); in test_tcp_type()
|
| /webrtc/srtp/src/ |
| H A D | error.rs | 83 KeyingMaterial(#[from] util::KeyingMaterialExporterError), 87 Util(#[from] util::Error), 89 Rtcp(#[from] rtcp::Error), 91 AesGcm(#[from] aes_gcm::Error), 99 pub struct IoError(#[from] pub io::Error); 109 fn from(e: io::Error) -> Self { in from() method 116 fn from(e: MpscSendError<T>) -> Self { in from() method
|
| /webrtc/stun/src/ |
| H A D | error.rs | 65 Url(#[from] url::ParseError), 67 Utf8(#[from] FromUtf8Error), 73 Util(#[from] util::Error), 78 pub struct IoError(#[from] pub io::Error); 88 fn from(e: io::Error) -> Self { in from() method 95 fn from(e: MpscSendError<T>) -> Self { in from() method
|
| /webrtc/examples/examples/ |
| H A D | README.md | 5 All examples are ported from [Pion](https://github.com/pion/webrtc/tree/master/examples#readme). Pl… 9 - [x] [Play from Disk VPx](play-from-disk-vpx): The play-from-disk-vp8 example demonstrates how to … 10 - [x] [Play from Disk H264](play-from-disk-h264): The play-from-disk-h264 example demonstrates how … 11 …from Disk Renegotiation](play-from-disk-renegotiation): The play-from-disk-renegotiation example i… 22 …ls): The data-channels example shows how you can send/recv DataChannel messages from a web browser. 23 …DataChannel messages from a web browser. The difference with the data-channels example is that the…
|
| /webrtc/sdp/src/ |
| H A D | error.rs | 24 Utf8(#[from] FromUtf8Error), 32 ParseInt(#[from] ParseIntError), 34 ParseUrl(#[from] url::ParseError), 43 pub struct IoError(#[from] pub io::Error); 53 fn from(e: io::Error) -> Self { in from() method
|
| /webrtc/interceptor/src/ |
| H A D | error.rs | 26 Srtp(#[from] srtp::Error), 28 Rtcp(#[from] rtcp::Error), 30 Rtp(#[from] rtp::Error), 32 Util(#[from] util::Error),
|
| /webrtc/turn/src/ |
| H A D | error.rs | 156 ParseInt(#[from] ParseIntError), 158 ParseIp(#[from] net::AddrParseError), 162 Util(#[from] util::Error), 164 Stun(#[from] stun::Error), 171 pub struct IoError(#[from] pub io::Error); 181 fn from(e: io::Error) -> Self { in from() method 187 fn from(e: SystemTimeError) -> Self { in from() method
|
| /webrtc/turn/examples/ |
| H A D | turn_client_udp.rs | 143 let (n, from) = match pinger_conn_rx.recv_from(&mut buf).await { in do_ping_test() 144 Ok((n, from)) => (n, from), in do_ping_test() 165 let (n, from) = match relay_conn.recv_from(&mut buf).await { in do_ping_test() 167 Ok((n, from)) => (n, from), in do_ping_test() 170 println!("relay_conn read-loop: {:?} from {}", &buf[..n], from); in do_ping_test() 173 if relay_conn.send_to(&buf[..n], from).await.is_err() { in do_ping_test()
|
| /webrtc/data/src/ |
| H A D | error.rs | 24 Util(#[from] util::Error), 26 Sctp(#[from] sctp::Error), 28 Utf8(#[from] FromUtf8Error), 36 fn from(e: Error) -> Self { in from() method 42 fn from(error: Error) -> Self { in from() method
|
| /webrtc/util/src/ |
| H A D | error.rs | 109 ParseIpnet(#[from] ipnet::AddrParseError), 111 ParseIp(#[from] net::AddrParseError), 113 ParseInt(#[from] ParseIntError), 117 Utf8(#[from] FromUtf8Error), 143 pub struct IoError(#[from] pub io::Error); 153 fn from(e: io::Error) -> Self { in from() method
|
| /webrtc/mdns/src/ |
| H A D | error.rs | 65 Utf8(#[from] FromUtf8Error), 67 ParseIp(#[from] net::AddrParseError), 74 pub struct IoError(#[from] pub io::Error); 84 fn from(e: io::Error) -> Self { in from() method
|