*** This bug is a duplicate of bug 1461600 ***
https://bugs.launchpad.net/bugs/1461600
MediaDevices.getUserMedia() allows specifying constraints to select the
front/rear camera, and this can be used to change the camera being used
on the fly, without reloading the page.
There is an example of that https://simpl.info/getusermedia/sources/,
however it fails with the following error:
[JS] (https://simpl.info/getusermedia/sources/js/main.js:48) Uncaught
TypeError: window.stream.stop is not a function
I verified that it fails in the same way in chrome, so it’s not an oxide issue.
I modified that code (to use stream.getTracks()[].stop()) and ran it
(https://people.canonical.com/~osomon/getusermedia/sources/) on my arale, and
this works better, although this is still not switching cameras. That one might
be a bug in oxide (needs further investigation).
So assuming this works in oxide (which apparently it doesn’t, will file
a bug for it), the app could provide a toggle to switch between
front/rear camera if it wanted to (that’d be up to appear.in to add that
to their UI if not present yet).
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1554244
Title:
Switching cameras requires web page reload in webbrowser-app, not
available in webapp-container
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/webbrowser-app/+bug/1554244/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs