mirror of
https://github.com/servo/servo.git
synced 2025-08-15 18:35:33 +01:00
script: Move code generation and webidl files to new script_bindings crate. (#35157)
Signed-off-by: Josh Matthews <josh@joshmatthews.net>
This commit is contained in:
parent
a88b59534f
commit
af8d7c2de7
469 changed files with 187 additions and 137 deletions
47
components/script_bindings/webidls/RTCRtpSender.webidl
Normal file
47
components/script_bindings/webidls/RTCRtpSender.webidl
Normal file
|
@ -0,0 +1,47 @@
|
|||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
|
||||
|
||||
// https://w3c.github.io/webrtc-pc/#dom-rtcrtpsender
|
||||
|
||||
dictionary RTCRtpHeaderExtensionParameters {
|
||||
required DOMString uri;
|
||||
required unsigned short id;
|
||||
boolean encrypted = false;
|
||||
};
|
||||
|
||||
dictionary RTCRtcpParameters {
|
||||
DOMString cname;
|
||||
boolean reducedSize;
|
||||
};
|
||||
|
||||
dictionary RTCRtpCodecParameters {
|
||||
required octet payloadType;
|
||||
required DOMString mimeType;
|
||||
required unsigned long clockRate;
|
||||
unsigned short channels;
|
||||
DOMString sdpFmtpLine;
|
||||
};
|
||||
|
||||
dictionary RTCRtpParameters {
|
||||
required sequence<RTCRtpHeaderExtensionParameters> headerExtensions;
|
||||
required RTCRtcpParameters rtcp;
|
||||
required sequence<RTCRtpCodecParameters> codecs;
|
||||
};
|
||||
|
||||
dictionary RTCRtpSendParameters : RTCRtpParameters {
|
||||
required DOMString transactionId;
|
||||
required sequence<RTCRtpEncodingParameters> encodings;
|
||||
};
|
||||
|
||||
[Exposed=Window, Pref="dom_webrtc_transceiver_enabled"]
|
||||
interface RTCRtpSender {
|
||||
//readonly attribute MediaStreamTrack? track;
|
||||
//readonly attribute RTCDtlsTransport? transport;
|
||||
//static RTCRtpCapabilities? getCapabilities(DOMString kind);
|
||||
Promise<undefined> setParameters(RTCRtpSendParameters parameters);
|
||||
RTCRtpSendParameters getParameters();
|
||||
//Promise<void> replaceTrack(MediaStreamTrack? withTrack);
|
||||
//void setStreams(MediaStream... streams);
|
||||
//Promise<RTCStatsReport> getStats();
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue