-
-
Notifications
You must be signed in to change notification settings - Fork 96
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
Add support for multi-stream VoIP #1735
Conversation
Signed-off-by: Kévin Commaille <[email protected]>
Signed-off-by: Kévin Commaille <[email protected]>
Signed-off-by: Kévin Commaille <[email protected]>
Signed-off-by: Kévin Commaille <[email protected]>
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.
Threads still opened from the previous review.
a `purpose` of an unknown type (i.e. not `m.usermedia` or `m.screenshare`), it | ||
should be ignored. | ||
|
||
Clients implementing this specification will ignore any streamless tracks. Note |
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.
I know this is existing text, but it now seems even more confusing than before, so I think we need to clarify.
- What is the mechanism by which streamless tracks are ignored? Or is this an instruction to clients to ignore such tracks?
- what is that to do with
addTrack
's parameters?- is it related to
sdp_stream_metadata
? if not, it should probably not be in the middle of the text about it?
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.
- I believe it's the job of the client implementation to ignore streamless tracks. So the
will
probably needs to be changed to aMUST
, like in other places in the spec. - I believe that the
addTrack
note is a bit of help for client implementation. For context it refers toRTCPeerConnection: addTrack()
. It's a method that takes a track and any number of streams. If there is no stream provided, it creates a streamless track, which is why the method should be called with a track and a stream. In my opinion the note could be removed. - Even if the whole section talks a lot about
sdp_stream_metadata
, it is about streams, and it just happens that it is the only paragraph left that doesn't mention the field. It could be placed at the top or bottom of the section if you prefer.
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.
- Indeed. Can you change
will
toMUST
(or, maybe more readably,should
)? - Right. Yes. I think we should remove it.
- Yes, I think it would make more sense at the end of the section, after the note on backwards-compatibility.
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.
Done
@@ -0,0 +1,27 @@ | |||
type: object |
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.
I don't think this belongs in core-event-schema
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.
I agree. Since it doesn't seem to belong directly in schemas
either, because it only contains full event schemas, I took the liberty to create a components
directory (named like this for similarity with the property that includes reusable bits in the OpenAPI spec)
a `purpose` of an unknown type (i.e. not `m.usermedia` or `m.screenshare`), it | ||
should be ignored. | ||
|
||
Clients implementing this specification will ignore any streamless tracks. Note |
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.
- Indeed. Can you change
will
toMUST
(or, maybe more readably,should
)? - Right. Yes. I think we should remove it.
- Yes, I think it would make more sense at the end of the section, after the note on backwards-compatibility.
* `m.usermedia` - stream that contains the webcam and/or microphone | ||
tracks | ||
* `m.screenshare` - stream with the screen-sharing tracks |
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.
* `m.usermedia` - stream that contains the webcam and/or microphone | |
tracks | |
* `m.screenshare` - stream with the screen-sharing tracks | |
* `m.usermedia`: Stream that contains the webcam and/or microphone | |
tracks. | |
* `m.screenshare`: Stream with the screen-sharing tracks. |
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.
Applied
Signed-off-by: Kévin Commaille <[email protected]>
Signed-off-by: Kévin Commaille <[email protected]>
Signed-off-by: Kévin Commaille <[email protected]>
Signed-off-by: Kévin Commaille <[email protected]>
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.
looks great!
As per MSC3077.
This is built on top of #1602 and incorporates the feedback from the first review, as was suggested in the Matrix Spec and Docs Authoring Room.
Threads which are not resolved in the other PR are reopened here.
Preview: https://pr1735--matrix-spec-previews.netlify.app