-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Implement RTCRtpSender.getCapabilities
method
#3737
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you specify your source more clearly here?
I can't seem to find your additions in the spec you linked.
In general though, we should obviously follow the spec.
@@ -74,6 +81,7 @@ interface RTCRtpSender { | |||
RTCRtpParameters getParameters(); | |||
Promise<undefined> replaceTrack(MediaStreamTrack? withTrack); | |||
Promise<RTCStatsReport> getStats(); | |||
static RTCRtpCapabilities getCapabilities(DOMString kind); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
static RTCRtpCapabilities getCapabilities(DOMString kind); | |
static RTCRtpCapabilities? getCapabilities(DOMString kind); |
dictionary RTCRtpCapabilities { | ||
sequence<RTCRtpCodecParameters> codecs; | ||
sequence<RTCRtpHeaderExtensionParameters> headerExtensions; | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where exactly did you get this from?
dictionary RTCRtpCapabilities { | |
sequence<RTCRtpCodecParameters> codecs; | |
sequence<RTCRtpHeaderExtensionParameters> headerExtensions; | |
}; | |
dictionary RTCRtpCapabilities { | |
required sequence<RTCRtpCodecCapability> codecs; | |
required sequence<RTCRtpHeaderExtensionCapability> headerExtensions; | |
}; |
DOMString scalabilityMode; | ||
RTCRtpCodecParameters codec; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
DOMString scalabilityMode; | |
RTCRtpCodecParameters codec; |
This whole type seems to be wrong, but where did you get these added fields from?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunately, I have not found these fields in the current spec.
I have seen these fields there:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adding these bindings seems fine to me, but they would have to be added as unstable as far as I can see.
This PR adds spec compliant
getCapabilities
method forRTCRtpSender
. Also adds theRTCRtpCapabilities
dictionary and thecodec
andscalabilityMode
fields for theRTCRtpEncodingParameters
.