Skip to content

Commit

Permalink
Added jitterBufferTarget to RtcRtpReceiver.
Browse files Browse the repository at this point in the history
  • Loading branch information
erik-moqvist committed Jul 8, 2024
1 parent 10fd870 commit 12bb2b0
Show file tree
Hide file tree
Showing 3 changed files with 22 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
17 changes: 17 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,23 @@ extern "C" {
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`, `RtcRtpReceiver`*"]
pub fn track(this: &RtcRtpReceiver) -> MediaStreamTrack;
# [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`*"]
pub fn jitter_buffer_target(this: &RtcRtpReceiver) -> Option<f64>;
# [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`*"]
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
2 changes: 2 additions & 0 deletions crates/web-sys/webidls/enabled/RTCRtpReceiver.webidl
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ interface RTCRtpReceiver {
sequence<RTCRtpContributingSource> getContributingSources();
[Pref="media.peerconnection.rtpsourcesapi.enabled"]
sequence<RTCRtpSynchronizationSource> getSynchronizationSources();
[SetterThrows]
attribute DOMHighResTimeStamp? jitterBufferTarget;

[ChromeOnly]
undefined setStreamIds(sequence<DOMString> streamIds);
Expand Down

0 comments on commit 12bb2b0

Please sign in to comment.