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

Pass kind into algorithms that rely on it. #1831

Merged
merged 1 commit into from Apr 12, 2018
Merged

Conversation

jan-ivar
Copy link
Member

@jan-ivar jan-ivar commented Apr 11, 2018

Fix for #1830.


Preview | Diff

@@ -5495,7 +5497,8 @@ <h3><dfn>RTCRtpSender</dfn> Interface</h3>
changed appropriately.</p>

<p>To <dfn>create an RTCRtpSender</dfn> with a
<code><a>MediaStreamTrack</a></code>, <var>track</var>, a list of
<code><a>MediaStreamTrack</a></code>, <var>track</var>, a string,
<var>kind</var>, a list of
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the language "a string, kind" reads oddly to me. it's kind of the verbal equivalent of

function createRtcRtpSender(DOMString kind, .....)

but emphasizing the stringiness seems weird to me. Not going to object too much, though.

Copy link
Member Author

@jan-ivar jan-ivar Apr 11, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I prefer to not list types at all (we're inconsistent throughout the spec). But if we're going to list types then kind is not a type, its type is string, and we are listing types here.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"...and optionally an id string, id" was already there. Should I remove the types altogether?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm happy with leaving the types out for these non-formal interfaces.
(the reason why audio/video isn't an enum is an artifact of WebIDL's treatment of enums and extensibility, not because we didn't want it to be, I think.)

@@ -6559,7 +6562,7 @@ <h2>Dictionary <code><a>RTCRtpHeaderExtensionCapability</a></code> Members</h2>
<h3><dfn>RTCRtpReceiver</dfn> Interface</h3>
<p>The <code>RTCRtpReceiver</code> interface allows an application to
inspect the receipt of a <code>MediaStreamTrack</code>.</p>
<p>To <dfn>create an RTCRtpReceiver</dfn> with kind, <var>kind</var>, and
Copy link
Member Author

@jan-ivar jan-ivar Apr 11, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My comment was in reference to this line, which used kind as both type and name.

@stefhak stefhak merged commit 27ebd26 into w3c:master Apr 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants