Hi all, I am trying to solve Bug 834164 [1]. On unagi phone, system resource conflict happens between following apps. - hw video codec used by Video app - camera hw which generating jpeg by Camera app
To solve the problem. It is necessary to free hw video codec when document is hide within gecko on FirefoxOS. At first, I try to solve it by using a similar way to AudioChannel. But I recognized that the way is not fit well to the problem. Because AudioChannel controls media elements only when the media element is in playing state. There are 5 choices(b2g18 branch base) to control the freeing decoder. If it is possible to implement it in lower layer, it is ideal. - nsHTMLMediaElement - nsBuiltinDecoder - nsBuiltinDecoderStateMachine - nsMediaOmxReader - OmxDecoder But it is not easy to control the freeing decoder in lower layer, because each class is tightly interdependent. I thought that nsHTMLMediaElement is better to do it. Then I created attachment 707269 [2]. It is just temporary workaround for Bug 834164. Can I have advices about how this problem should be solved? [1]834164 – [Camera] Camera crash after opened video app and played a video https://bugzilla.mozilla.org/show_bug.cgi?id=834164 [2] https://bug831747.bugzilla.mozilla.org/attachment.cgi?id=707269 Thanks in advance. Sotaro _______________________________________________ dev-media mailing list [email protected] https://lists.mozilla.org/listinfo/dev-media

