Skip to content

Commit

Permalink
feat: add setConfiguration to RtcPeerConnection
Browse files Browse the repository at this point in the history
  • Loading branch information
k-wasniowski committed Sep 6, 2024
1 parent e4f8c45 commit 3ba65f4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
8 changes: 8 additions & 0 deletions crates/web-sys/src/features/gen_RtcPeerConnection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -687,6 +687,14 @@ extern "C" {
keygen_algorithm: &str,
) -> Result<::js_sys::Promise, JsValue>;
#[cfg(feature = "RtcConfiguration")]
# [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = setConfiguration)]
#[doc = "The `setConfiguration()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/setConfiguration)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `RtcConfiguration`, `RtcPeerConnection`*"]
pub fn set_configuration(this: &RtcPeerConnection, configuration: &RtcConfiguration);
#[cfg(feature = "RtcConfiguration")]
# [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = getConfiguration)]
#[doc = "The `getConfiguration()` method."]
#[doc = ""]
Expand Down
3 changes: 2 additions & 1 deletion crates/web-sys/webidls/enabled/RTCPeerConnection.webidl
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,8 @@ interface RTCPeerConnection : EventTarget {
[ChromeOnly]
attribute DOMString id;

RTCConfiguration getConfiguration ();
undefined setConfiguration(optional RTCConfiguration configuration);
RTCConfiguration getConfiguration ();
[Deprecated="RTCPeerConnectionGetStreams"]
sequence<MediaStream> getLocalStreams ();
[Deprecated="RTCPeerConnectionGetStreams"]
Expand Down

0 comments on commit 3ba65f4

Please sign in to comment.