W3C home > Mailing lists > Public > public-webrtc-logs@w3.org > October 2018

Re: [mediacapture-record] Not clear if onpause/onresume should not be fired if it is already paused/recording

From: Harald Alvestrand via GitHub <sysbot+gh@w3.org>
Date: Tue, 09 Oct 2018 08:24:53 +0000
To: public-webrtc-logs@w3.org
Message-ID: <issue_comment.created-428104992-1539073492-sysbot+gh@w3.org>
The spec as written clearly says that calling "pause(); pause()" must queue two tasks, both of which fire the "paused" event.

My immediate thought is that this seems silly. Should we change it?
(If we change it, the check for the paused state must be inside the queued task (otherwise race conditions could occur), so we can't let pause() return an error.)

GitHub Notification of comment by alvestrand
Please view or discuss this issue at https://github.com/w3c/mediacapture-record/issues/150#issuecomment-428104992 using your GitHub account
Received on Tuesday, 9 October 2018 08:24:54 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:22:07 UTC