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 mock devices for getUserMedia() tests #12046

Open
foolip opened this issue Jul 18, 2018 · 8 comments
Open

Need mock devices for getUserMedia() tests #12046

foolip opened this issue Jul 18, 2018 · 8 comments

Comments

@foolip
Copy link
Member

foolip commented Jul 18, 2018

#7424 was about WebRTC tests and is resolved, but testing getUserMedia() itself deeply remains impossible.

Most browsers already have some way of using mock devices, and a WebDriver API for controlling which devices appear to exist and their characteristics is under discussion.

@agouaillard @youennf @jan-ivar @burg @eric-carlson @jugglinmike

@foolip
Copy link
Member Author

foolip commented Oct 11, 2018

@agouaillard, do you have an update on the WebDriver API piece for this?

@agouaillard
Copy link
Contributor

agouaillard commented Oct 12, 2018 via email

@youennf
Copy link
Contributor

youennf commented Oct 15, 2018

WebKit is interested in seeing some improvements here, and has support for an internals API to control this.
That said, WebDriver APIs usually come much later than internals APIs which are defined at time of implementation of a feature.
This raises the question of whether allowing internals API in WPT if there is consensus from browser vendors on these internals API (but no WebDriver API yet or ever).

@foolip
Copy link
Member Author

foolip commented Oct 16, 2018

@youennf on the assumption that you'll be attending, I added this topic and your name to https://github.com/web-platform-tests/wpt/wiki/TPAC-2018.

FWIW, I think that we should have testdriver.js APIs where they can be implemented by at least one vendor and the behavior is defined clearly enough that it can be implemented without reverse engineering, even when it's not defined as a WebDriver API.

@agouaillard
Copy link
Contributor

agouaillard commented Oct 16, 2018 via email

@foolip
Copy link
Member Author

foolip commented Nov 20, 2020

https://w3c.github.io/mediacapture-automation/ exists now, but I believe it's not implemented anywhere yet, and also we don't have testdriver.js bindings for it.

@sorinpav
Copy link

Is anyone working actively on this at the moment?

@princ09
Copy link

princ09 commented Apr 22, 2021

@sorinpav I am , I couldn't find how to send fake stream. https://github.com/goldingdamien/get-user-media-mock this repo did the way i want but captureStream() doesn't work in react

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

6 participants