| /webrtc/examples/examples/offer-answer/ |
| H A D | README.md | 1 # offer-answer 3 offer-answer is an example of two webrtc-rs or pion instances communicating directly! 5 The SDP offer and answer are exchanged automatically over HTTP. 17 Next, run `offer`: 20 cargo build --example offer 21 ./target/debug/examples/offer
|
| H A D | offer.rs | 332 let offer = peer_connection.create_offer(None).await?; in main() localVariable 335 let payload = match serde_json::to_string(&offer) { in main() 342 peer_connection.set_local_description(offer).await?; in main()
|
| /webrtc/webrtc/src/rtp_transceiver/ |
| H A D | rtp_transceiver_test.rs | 193 let offer = offer_pc.create_offer(None).await?; in test_rtp_transceiver_set_codec_preferences_payload_type() localVariable 196 answer_pc.set_remote_description(offer).await?; in test_rtp_transceiver_set_codec_preferences_payload_type() 227 let offer = offer_pc.create_offer(None).await?; in test_rtp_transceiver_direction_change() localVariable 230 answer_pc.set_remote_description(offer).await?; in test_rtp_transceiver_direction_change() 241 let offer = offer_pc.create_offer(None).await?; in test_rtp_transceiver_direction_change() localVariable 242 assert!(offer.sdp.contains("a=inactive"),); in test_rtp_transceiver_direction_change() 245 answer_pc.set_remote_description(offer).await?; in test_rtp_transceiver_direction_change() 280 let offer = offer_pc.create_offer(None).await?; in test_rtp_transceiver_set_direction_causing_negotiation() localVariable 282 answer_pc.set_remote_description(offer).await?; in test_rtp_transceiver_set_direction_causing_negotiation() 345 assert!(offer.sdp.contains("a=inactive"),); in test_rtp_transceiver_stopping() [all …]
|
| /webrtc/webrtc/src/peer_connection/sdp/ |
| H A D | session_description.rs | 40 pub fn offer(sdp: String) -> Result<RTCSessionDescription> { in offer() method 153 let offer = offer_pc.create_offer(None).await?; in test_session_description_answer() localVariable 154 answer_pc.set_remote_description(offer).await?; in test_session_description_answer() 175 let offer = pc.create_offer(None).await?; in test_session_description_offer() localVariable 177 let desc = RTCSessionDescription::offer(offer.sdp.clone())?; in test_session_description_offer() 182 assert_eq!(offer.unmarshal()?.marshal(), desc.unmarshal()?.marshal()); in test_session_description_offer() 197 let offer = offer_pc.create_offer(None).await?; in test_session_description_pranswer() localVariable 198 answer_pc.set_remote_description(offer).await?; in test_session_description_pranswer() 218 let offer = pc.create_offer(None).await?; in test_session_description_unmarshal() localVariable 221 sdp_type: offer.sdp_type, in test_session_description_unmarshal() [all …]
|
| /webrtc/webrtc/src/dtls_transport/ |
| H A D | dtls_transport_test.rs | 79 let offer = pc_offer.create_offer(None).await?; in test_invalid_fingerprint_causes_failed() localVariable 80 pc_offer.set_local_description(offer).await?; in test_invalid_fingerprint_causes_failed() 87 let mut offer = pc_offer.pending_local_description().await.unwrap(); in test_invalid_fingerprint_causes_failed() localVariable 89 log::trace!("receiving pending local desc: {:?}", offer); in test_invalid_fingerprint_causes_failed() 93 …offer.sdp = re.replace_all(offer.sdp.as_str(), "sha-256 AA:AA:AA:AA:AA:AA:AA:AA:AA:AA:AA:AA:AA:AA:… in test_invalid_fingerprint_causes_failed() 95 pc_answer.set_remote_description(offer).await?; in test_invalid_fingerprint_causes_failed()
|
| /webrtc/examples/ |
| H A D | Cargo.toml | 138 name = "offer" 139 path = "examples/offer-answer/offer.rs" 144 path = "examples/offer-answer/answer.rs"
|
| /webrtc/webrtc/src/api/media_engine/ |
| H A D | media_engine_test.rs | 18 let offer = pc.create_offer(None).await?; in test_opus_case() localVariable 21 assert!(re.is_match(offer.sdp.as_str())); in test_opus_case() 38 let offer = pc.create_offer(None).await?; in test_video_case() localVariable 41 assert!(re.is_match(offer.sdp.as_str())); in test_video_case() 43 assert!(re.is_match(offer.sdp.as_str())); in test_video_case() 45 assert!(re.is_match(offer.sdp.as_str())); in test_video_case()
|
| /webrtc/examples/examples/data-channels/ |
| H A D | data-channels.rs | 160 let offer = serde_json::from_str::<RTCSessionDescription>(&desc_data)?; in main() localVariable 163 peer_connection.set_remote_description(offer).await?; in main()
|
| /webrtc/examples/examples/data-channels-create/ |
| H A D | data-channels-create.rs | 150 let offer = peer_connection.create_offer(None).await?; in main() localVariable 156 peer_connection.set_local_description(offer).await?; in main()
|
| /webrtc/examples/examples/rtp-to-webrtc/ |
| H A D | rtp-to-webrtc.rs | 158 let offer = serde_json::from_str::<RTCSessionDescription>(&desc_data)?; in main() localVariable 161 peer_connection.set_remote_description(offer).await?; in main()
|
| /webrtc/examples/examples/ice-restart/ |
| H A D | README.md | 20 * `ICE Restart` is the button that causes a new offer to be made wih `iceRestart: true`.
|
| H A D | ice-restart.rs | 146 let offer = match serde_json::from_str::<RTCSessionDescription>(&sdp_str) { in do_signaling() localVariable 151 if let Err(err) = pc.set_remote_description(offer).await { in do_signaling()
|
| /webrtc/examples/examples/data-channels-detach-create/ |
| H A D | data-channels-detach-create.rs | 159 let offer = peer_connection.create_offer(None).await?; in main() localVariable 165 peer_connection.set_local_description(offer).await?; in main()
|
| /webrtc/examples/examples/data-channels-detach/ |
| H A D | data-channels-detach.rs | 169 let offer = serde_json::from_str::<RTCSessionDescription>(&desc_data)?; in main() localVariable 172 peer_connection.set_remote_description(offer).await?; in main()
|
| /webrtc/examples/examples/simulcast/ |
| H A D | simulcast.rs | 148 let offer = serde_json::from_str::<RTCSessionDescription>(&desc_data)?; in main() localVariable 151 peer_connection.set_remote_description(offer).await?; in main()
|
| /webrtc/examples/examples/data-channels-close/ |
| H A D | data-channels-close.rs | 198 let offer = serde_json::from_str::<RTCSessionDescription>(&desc_data)?; in main() localVariable 201 peer_connection.set_remote_description(offer).await?; in main()
|
| /webrtc/examples/examples/insertable-streams/ |
| H A D | insertable-streams.rs | 228 let offer = serde_json::from_str::<RTCSessionDescription>(&desc_data)?; in main() localVariable 231 peer_connection.set_remote_description(offer).await?; in main()
|
| /webrtc/examples/examples/ortc/ |
| H A D | README.md | 20 `ortc --offer` this will emit a base64 message. Copy this message to your clipboard.
|
| /webrtc/examples/examples/reflect/ |
| H A D | reflect.rs | 191 let offer = serde_json::from_str::<RTCSessionDescription>(&desc_data)?; in main() localVariable 194 peer_connection.set_remote_description(offer).await?; in main()
|
| /webrtc/examples/examples/rtp-forwarder/ |
| H A D | rtp-forwarder.rs | 281 let offer = serde_json::from_str::<RTCSessionDescription>(&desc_data)?; in main() localVariable 284 peer_connection.set_remote_description(offer).await?; in main()
|
| /webrtc/examples/examples/broadcast/ |
| H A D | broadcast.rs | 79 let offer = serde_json::from_str::<RTCSessionDescription>(&desc_data)?; in main() localVariable 188 peer_connection.set_remote_description(offer).await?; in main()
|
| /webrtc/webrtc/src/data_channel/ |
| H A D | data_channel_test.rs | 1227 let offer = offer_pc.create_offer(None).await?; in test_data_channel_non_standard_session_description() localVariable 1230 offer_pc.set_local_description(offer).await?; in test_data_channel_non_standard_session_description() 1233 let mut offer = offer_pc.local_description().await.unwrap(); in test_data_channel_non_standard_session_description() localVariable 1240 offer.sdp = re in test_data_channel_non_standard_session_description() 1241 .replace_all(offer.sdp.as_str(), OLD_APPLICATION) in test_data_channel_non_standard_session_description() 1244 offer.sdp = re in test_data_channel_non_standard_session_description() 1245 .replace_all(offer.sdp.as_str(), OLD_ATTRIBUTE) in test_data_channel_non_standard_session_description() 1249 assert!(offer.sdp.contains(OLD_APPLICATION)); in test_data_channel_non_standard_session_description() 1250 assert!(offer.sdp.contains(OLD_ATTRIBUTE)); in test_data_channel_non_standard_session_description() 1252 answer_pc.set_remote_description(offer).await?; in test_data_channel_non_standard_session_description()
|
| /webrtc/examples/examples/swap-tracks/ |
| H A D | swap-tracks.rs | 127 let offer = serde_json::from_str::<RTCSessionDescription>(&desc_data)?; in main() localVariable 130 peer_connection.set_remote_description(offer).await?; in main()
|
| /webrtc/examples/examples/save-to-disk-h264/ |
| H A D | save-to-disk-h264.rs | 276 let offer = serde_json::from_str::<RTCSessionDescription>(&desc_data)?; in main() localVariable 279 peer_connection.set_remote_description(offer).await?; in main()
|
| /webrtc/examples/examples/play-from-disk-h264/ |
| H A D | play-from-disk-h264.rs | 320 let offer = serde_json::from_str::<RTCSessionDescription>(&desc_data)?; in main() localVariable 323 peer_connection.set_remote_description(offer).await?; in main()
|