Hi all,
We are working on WebRTC on B2G now. I'd like to discuss the scenario
when the app is going to background.
When the app calls GetUserMedia to get camera/mic resources then it
switches to background. What should we do?
I think we should turn off the camera and mic. Because
1. privacy
2. We have only one HW
3. power consumption
The ways to turn off camera and mic may
1. Having a media service to control the HW resources. As I know, Sotaro
will implement this service.
2. Before 1 is done, apps or WebRTC API should handle the situation.
On B2G, camera app listens to "mozvisibilitychange" event to turn on/off
the camera.
But WebRTC cannot request apps to listen to "mozvisibilitychange" since
it may be called in the web page.
I don't think every page will handle it correctly. So that I think
WebRTC API should handle it in the short term, ex, in MediaManager.
How do you think?
Please give me some feedback.
Thanks.
--
Steven
Mozilla Taiwan
_______________________________________________
dev-media mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-media