mirror of
https://github.com/tlsnotary/wasm-bindgen.git
synced 2026-01-09 13:47:56 -05:00
Added getCapabilities() to RtcRtpReceiver (#3941)
This commit is contained in:
@@ -20,6 +20,9 @@
|
||||
* Added bindings for `InputDeviceInfo` and `MediaTrackCapabilities`.
|
||||
[#3935](https://github.com/rustwasm/wasm-bindgen/pull/3935)
|
||||
|
||||
* Add bindings for `RTCRtpReceiver.getCapabilities(DOMString)` method.
|
||||
[#3941](https://github.com/rustwasm/wasm-bindgen/pull/3941)
|
||||
|
||||
### Changed
|
||||
|
||||
* Stabilize Web Share API.
|
||||
|
||||
@@ -20,6 +20,14 @@ extern "C" {
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`, `RtcRtpReceiver`*"]
|
||||
pub fn track(this: &RtcRtpReceiver) -> MediaStreamTrack;
|
||||
#[cfg(feature = "RtcRtpCapabilities")]
|
||||
# [wasm_bindgen (static_method_of = RtcRtpReceiver , js_class = "RTCRtpReceiver" , js_name = getCapabilities)]
|
||||
#[doc = "The `getCapabilities()` method."]
|
||||
#[doc = ""]
|
||||
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpReceiver/getCapabilities)"]
|
||||
#[doc = ""]
|
||||
#[doc = "*This API requires the following crate features to be activated: `RtcRtpCapabilities`, `RtcRtpReceiver`*"]
|
||||
pub fn get_capabilities(kind: &str) -> Option<RtcRtpCapabilities>;
|
||||
# [wasm_bindgen (method , structural , js_class = "RTCRtpReceiver" , js_name = getContributingSources)]
|
||||
#[doc = "The `getContributingSources()` method."]
|
||||
#[doc = ""]
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
JSImplementation="@mozilla.org/dom/rtpreceiver;1"]
|
||||
interface RTCRtpReceiver {
|
||||
readonly attribute MediaStreamTrack track;
|
||||
static RTCRtpCapabilities? getCapabilities(DOMString kind);
|
||||
Promise<RTCStatsReport> getStats();
|
||||
[Pref="media.peerconnection.rtpsourcesapi.enabled"]
|
||||
sequence<RTCRtpContributingSource> getContributingSources();
|
||||
|
||||
Reference in New Issue
Block a user