-
Notifications
You must be signed in to change notification settings - Fork 22
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
Recording a stream while adding/removing a track is not well defined #151
Comments
I'm not sure what the issue is: do you mean that if, upon |
step 5.3 does not seem to state that, once started, on track change, we should throw an error event and with which exception. It would be nice to clarify this. |
That's reasonable. Would you mind putting up a PR for it :-) ? |
Note: events are dispatched, not thrown.... in this case, they would be dispatched to the MediaRecorder object, I assume. |
I remember having the discussion about what to do when the set of tracks changes over the recorder's lifetime. The conclusion (I think) was that so few formats support doing this that we shouldn't bother, and just return an error, but the discussion's result could have been a little more obvious than just an "e.g." in the event methods summary. |
… recording Relates to w3c#151
PTAL at the PR. |
Doing a quick check in Chrome and Firefox, this error handling does not seem implemented. |
I think the best way to resolve this is by continuing the discussion in the original issue, #4. |
Let's close this issue then. |
@youennf Did you get around to that WPT test? I can at least not find one containing Also this change went from "MUST stop gathering data" to "MUST immediately stop gathering data, discard any data that it has gathered". For SecurityError it makes sense to discard the data (though does it make sense to still fire "dataavailable"?) but for modifying the track set I'm not so sure. Was this intended? |
Thanks for pinging me, I forgot about this one. I see your point about not discarding the data, I agree we should do this. |
SGTM |
Filed #162 for not discarding the data. PR also removes 'immediately'. |
According https://w3c.github.io/mediacapture-record/#event-summary, when adding/removing a track to a stream being recorded, recorder should dispatch a MediaRecorderErrorEvent event.
It is unclear whether this is part of https://w3c.github.io/mediacapture-record/#mediarecorder-methods start step 5.3, in which case it should be UnknownError or something else.
The text was updated successfully, but these errors were encountered: