W3C home > Mailing lists > Public > public-webrtc-logs@w3.org > February 2023

Re: [mediacapture-record] Make Error Event go after ondataavailable. (#118)

From: Andreas Pehrson via GitHub <sysbot+gh@w3.org>
Date: Thu, 16 Feb 2023 12:20:50 +0000
To: public-webrtc-logs@w3.org
Message-ID: <issue_comment.created-1433005021-1676550048-sysbot+gh@w3.org>
Firefox fires events [in this order](https://searchfox.org/mozilla-central/rev/b579290e6b830d1b3f0a941203b0c0e1e56c42a3/dom/media/MediaRecorder.cpp#959,964,979,989):
- "start"
- "dataavailable" unless there is a security error coming
- "error"
- "stop"

My only concern with swapping "error" and "stop" is that it could seem unclear which session the "error" comes from since there potentially could be another "start" in flight at this point.

GitHub Notification of comment by Pehrsons
Please view or discuss this issue at https://github.com/w3c/mediacapture-record/pull/118#issuecomment-1433005021 using your GitHub account

Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Thursday, 16 February 2023 12:20:52 UTC

This archive was generated by hypermail 2.4.0 : Saturday, 6 May 2023 21:20:00 UTC