- From: Elad Alon via GitHub <sysbot+gh@w3.org>
- Date: Fri, 17 Nov 2023 15:14:20 +0000
- To: public-webrtc-logs@w3.org
When you say "users" here, I believe you mean "Web developers." Please refer to [§7.8. Use Events and Observers appropriately](https://w3ctag.github.io/design-principles/#events-vs-observers), which reads (emphasis mine): > In general, use EventTarget and notification Events, rather than an Observer pattern, **unless an EventTarget can’t work well for your feature.** It also says: > If using events causes problems [...] consider using an Observer pattern instead. The benefits of using a callback rather than an event listener have previously been listed on this thread as well as during discussions in the WG and in TPAC. To name just one - multiple event handlers would be problematic if the first stops the track and the second handler receives a stopped track. (There were more benefits.) -- GitHub Notification of comment by eladalon1983 Please view or discuss this issue at https://github.com/w3c/mediacapture-screen-share/issues/255#issuecomment-1816609313 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Friday, 17 November 2023 15:14:22 UTC