Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow tracks without streams #3840

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
15 changes: 15 additions & 0 deletions crates/web-sys/src/features/gen_RtcPeerConnection.rs
Expand Up @@ -369,6 +369,21 @@ extern "C" {
feature = "MediaStreamTrack",
feature = "RtcRtpSender",
))]
#[wasm_bindgen (method , structural , variadic , js_class = "RTCPeerConnection" , js_name = addTrack)]
#[doc = "The `addTrack()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/addTrack)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `MediaStream`, `MediaStreamTrack`, `RtcPeerConnection`, `RtcRtpSender`*"]
pub fn add_track_without_streams(
this: &RtcPeerConnection,
track: &MediaStreamTrack,
) -> RtcRtpSender;
#[cfg(all(
feature = "MediaStream",
feature = "MediaStreamTrack",
feature = "RtcRtpSender",
))]
# [wasm_bindgen (method , structural , js_class = "RTCPeerConnection" , js_name = addTrack)]
#[doc = "The `addTrack()` method."]
#[doc = ""]
Expand Down