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 May 22, 2024
1 parent 9b37613 commit db1bc5c
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
* Add bindings for `RTCRtpReceiver.getCapabilities(DOMString)` method.
[#3941](https://github.com/rustwasm/wasm-bindgen/pull/3941)

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

### Changed

* Stabilize Web Share API.
Expand Down
14 changes: 14 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,20 @@ 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 , 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>);
#[cfg(feature = "RtcRtpCapabilities")]
# [wasm_bindgen (static_method_of = RtcRtpReceiver , js_class = "RTCRtpReceiver" , js_name = getCapabilities)]
#[doc = "The `getCapabilities()` method."]
Expand Down
1 change: 1 addition & 0 deletions crates/web-sys/webidls/enabled/RTCRtpReceiver.webidl
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ interface RTCRtpReceiver {
sequence<RTCRtpContributingSource> getContributingSources();
[Pref="media.peerconnection.rtpsourcesapi.enabled"]
sequence<RTCRtpSynchronizationSource> getSynchronizationSources();
attribute DOMHighResTimeStamp? jitterBufferTarget;

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

0 comments on commit db1bc5c

Please sign in to comment.