We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e779c24 commit 70fc5b4Copy full SHA for 70fc5b4
webrtc/src/peer_connection/mod.rs
@@ -651,6 +651,14 @@ impl RTCPeerConnection {
651
}
652
653
654
+ /// restart_ice restart ICE and triggers negotiation needed
655
+ /// <https://w3c.github.io/webrtc-pc/#dom-rtcpeerconnection-restartice>
656
+ pub async fn restart_ice(&self) -> Result<()> {
657
+ self.internal.ice_transport.restart().await?;
658
+ self.internal.trigger_negotiation_needed().await;
659
+ Ok(())
660
+ }
661
+
662
// set_configuration updates the configuration of this PeerConnection object.
663
pub async fn set_configuration(&self, configuration: RTCConfiguration) -> Result<()> {
664
// https://www.w3.org/TR/webrtc/#dom-rtcpeerconnection-setconfiguration (step #2)
0 commit comments