Skip to content

Commit

Permalink
Add sendEncodings in RTCRtpTransceiverInit (#3642)
Browse files Browse the repository at this point in the history
  • Loading branch information
logist322 committed Oct 5, 2023
1 parent 9e80eb2 commit 5d0f935
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@

### Added

* Add bindings for `RTCRtpTransceiverInit.sendEncodings`.
[#3642](https://github.com/rustwasm/wasm-bindgen/pull/3642)

* Add bindings for the Web Locks API to `web-sys`.
[#3604](https://github.com/rustwasm/wasm-bindgen/pull/3604)

Expand Down
17 changes: 17 additions & 0 deletions crates/web-sys/src/features/gen_RtcRtpTransceiverInit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,23 @@ impl RtcRtpTransceiverInit {
let _ = r;
self
}
#[doc = "Change the `sendEncodings` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `RtcRtpTransceiverInit`*"]
pub fn send_encodings(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
use wasm_bindgen::JsValue;
let r = ::js_sys::Reflect::set(
self.as_ref(),
&JsValue::from("sendEncodings"),
&JsValue::from(val),
);
debug_assert!(
r.is_ok(),
"setting properties should never fail on our dictionary objects"
);
let _ = r;
self
}
#[doc = "Change the `streams` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `RtcRtpTransceiverInit`*"]
Expand Down
3 changes: 1 addition & 2 deletions crates/web-sys/webidls/enabled/RTCRtpTransceiver.webidl
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ enum RTCRtpTransceiverDirection {
dictionary RTCRtpTransceiverInit {
RTCRtpTransceiverDirection direction = "sendrecv";
sequence<MediaStream> streams = [];
// TODO: bug 1396918
// sequence<RTCRtpEncodingParameters> sendEncodings;
sequence<RTCRtpEncodingParameters> sendEncodings = [];
};

[Pref="media.peerconnection.enabled",
Expand Down

0 comments on commit 5d0f935

Please sign in to comment.