On 2/01/2014 16:52, Han Wang wrote: > Dear GCP, > > Thanks for your reply. > > The very first step I want to do is to get that DoorHanger dialog popup > as Fennec does. > Currently, I can see from the catlog, when I go to a WebRTC webpage. It > starts to require the camera sharing. > However, there is no listener register to 'Doorhanger:Add' event. > ---------------------------------- > > D/GeckoEventDispatcher(4594): dispatchEvent: no listeners registered for > event 'Doorhanger:Add' > > --------------------- > > How can I get this Doorhanger popup dialog?
You would need to provide the UI for this permission prompt yourself, as it needs to be in Java and the prompt we use for Firefox will not necessarily work for your application. The support for these messages hasn't been extended to GeckoView yet: https://mxr.mozilla.org/mozilla-central/source/mobile/android/base/GeckoView.java#95 https://mxr.mozilla.org/mozilla-central/source/mobile/android/base/GeckoView.java#188 You would have to implement it yourself (the message handling - the UI you need to do in any case!) or wait till we get around to it (shouldn't be too long). It's essentially a JSON message sent by Gecko to Java containing a list of all cameras and microphones that are usable for the WebRTC call. -- GCP _______________________________________________ mobile-firefox-dev mailing list [email protected] https://mail.mozilla.org/listinfo/mobile-firefox-dev

