Hi all, I sent almost same mail in media ML last week. Then I want to ask same question also in b2g ML, because it is FirefoxOS(gonk) related. And I believe this make FirefoxOS(gonk) better.
On FirefoxOS(gonk), hw codecs and camera hw are loaded in application's process. These hardwares request high privilege(like system) to the processes. This produce following restrictions and problems. - normal web contents could not use the hardwares capability directly. - an application needs to have "deprecated-hwvideo" or "camera" permission in manifest.webapp to use them. - could not apply the privilege to an application durinng its running. It needs theprocess restart. - camara hw might be loaded from multiple processes. In android, camera hw is loaded from only one process(mediaserver). - application processes with deprecated-hwvideo/camera permission have too high privilege If we do not load the hardwares within app process, the problems doe not happen. But it is very very hard to solve it only within gecko right now. We could solve it by using android's mediaserver process. And FirefoxOS(gonk) already use AudioFlinger in the mediaserver process. By applying bug 803471, FirefoxOS could use hw codec and camera hw in mediaserver process. Right now, video recording is still work in progress. I confirmed that video play, camera preview and take photos by using today's branch on my phone. Can I have comments about it? Is it OK to proceed this way? https://bugzilla.mozilla.org/show_bug.cgi?id=803471 Thanks in advance, Sotaro _______________________________________________ dev-b2g mailing list [email protected] https://lists.mozilla.org/listinfo/dev-b2g
