Skip to content

Commit

Permalink
Added jitterBufferTarget to RtcRtpReceiver. (#3968)
Browse files Browse the repository at this point in the history
  • Loading branch information
erik-moqvist committed Jul 9, 2024
1 parent 10fd870 commit 32ae42c
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@
* Add bindings for `FocusOptions`.
[#3996](https://github.com/rustwasm/wasm-bindgen/pull/3996)

* Add bindings for `RTCRtpReceiver.jitterBufferTarget`.
[#3968](https://github.com/rustwasm/wasm-bindgen/pull/3968)

### Changed

* Stabilize Web Share API.
Expand Down
25 changes: 25 additions & 0 deletions crates/web-sys/src/features/gen_RtcRtpReceiver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,31 @@ extern "C" {
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`, `RtcRtpReceiver`*"]
pub fn track(this: &RtcRtpReceiver) -> MediaStreamTrack;
#[cfg(web_sys_unstable_apis)]
# [wasm_bindgen (structural , method , getter , js_class = "RTCRtpReceiver" , js_name = jitterBufferTarget)]
#[doc = "Getter for the `jitterBufferTarget` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpReceiver/jitterBufferTarget)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `RtcRtpReceiver`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub fn jitter_buffer_target(this: &RtcRtpReceiver) -> Option<f64>;
#[cfg(web_sys_unstable_apis)]
# [wasm_bindgen (structural , catch , method , setter , js_class = "RTCRtpReceiver" , js_name = jitterBufferTarget)]
#[doc = "Setter for the `jitterBufferTarget` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpReceiver/jitterBufferTarget)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `RtcRtpReceiver`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub fn set_jitter_buffer_target(
this: &RtcRtpReceiver,
value: Option<f64>,
) -> Result<(), JsValue>;
#[cfg(feature = "RtcRtpCapabilities")]
# [wasm_bindgen (static_method_of = RtcRtpReceiver , js_class = "RTCRtpReceiver" , js_name = getCapabilities)]
#[doc = "The `getCapabilities()` method."]
Expand Down
4 changes: 4 additions & 0 deletions crates/web-sys/webidls/unstable/RTCRtpReceiver.webidl
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
partial interface RTCRtpReceiver {
[SetterThrows]
attribute DOMHighResTimeStamp? jitterBufferTarget;
};

0 comments on commit 32ae42c

Please sign in to comment.