Agree, and I think sometimes we may want to keep receive even in background.

For example, if I join a conference by WebRTC, and I hear something interesting 
and want to take some note for it. I may bring up app like Evernote and write 
down some keyword for later reference.

I don't think it is good to just stop everthing when switched to background.

Best Regards,
Chiajung

----- Original Message -----
From: "Randy Lin" <[email protected]>
To: "Steven" <[email protected]>
Cc: [email protected]
Sent: Tuesday, April 30, 2013 7:04:16 PM
Subject: Re: Camera and mic control scenario of WebRTC

For VOIP or Audio Recording on mobile devices,
It's common for user to switch the application to background and do other 
things.

Randy

----- Original Message -----
From: "Steven" <[email protected]>
To: [email protected]
Sent: Tuesday, April 30, 2013 6:42:41 PM
Subject: Camera and mic control scenario of WebRTC

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
_______________________________________________
dev-media mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-media
_______________________________________________
dev-media mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-media

Reply via email to