You can find an example of making a JNI call in content/media here https://mxr.mozilla.org/mozilla-central/source/content/media/webrtc/MediaEngineWebRTC.cpp#246

Also, there are several more examples in media/libcubeb, media/omx-plugin and media/webrtc.

-Brad

On 10/28/13, 10:20 PM, Lu, Qiang wrote:

Hi, developer

I want to know whether I can call an android sdk java api from c++ code in Fennec.

For example, in fennec, under content/media

Video decode is implemented based on Android native stagefright OMXCodec c++ interface.

Whether I can change it by calling latest android MediaCodec Java API through JNI to handle those codec task?

I ask this because I can't find any code which using JNI under content/media except on mobile/android and widget/android.

Any suggestions are appreciated.

BR,

Lu Qiang



_______________________________________________
mobile-firefox-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/mobile-firefox-dev

_______________________________________________
mobile-firefox-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/mobile-firefox-dev

Reply via email to