Skip to content
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

Need rules for devicechange event when devices are removed. #413

Closed
alvestrand opened this issue Oct 27, 2016 · 3 comments
Closed

Need rules for devicechange event when devices are removed. #413

alvestrand opened this issue Oct 27, 2016 · 3 comments
Assignees

Comments

@alvestrand
Copy link
Contributor

#412 seemed to have rules for raising events when devices are added, but not when they're removed.

This needs to be checked, and possibly more text added.

@stefhak
Copy link
Contributor

stefhak commented Nov 29, 2016

To me it seems like the important event is when a device is added. This could lead to the app taking action (like proposing to the end user the use of that device instead).
When a device is removed the app would get to know from a track ended event if the device was in use. If the device is not in use the app would anyway(?) do enumerate devices to see if it is available before requesting it via a gUM call.
But perhaps we should add event firing for removal of devices just to be consistent?

@alvestrand
Copy link
Contributor Author

If an app (say) wants to keep a menu of devices available on screen, and wants to update the menu when devices are added or removed, it needs something to know when the device is gone; polling is not what we want to encourage.

@stefhak
Copy link
Contributor

stefhak commented Nov 30, 2016

Yes I agree, we should add this. Reading the spec it seems like rather small changes are required, is someone willing to draft a PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants