mirror of
https://github.com/rustwasm/wasm-bindgen.git
synced 2024-11-30 12:33:54 +03:00
Add sendEncodings
in RTCRtpTransceiverInit
(#3642)
This commit is contained in:
parent
9e80eb269c
commit
5d0f935d65
@ -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)
|
||||
|
||||
|
@ -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`*"]
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user