Hi Brad,

Thanks for your quick reply.

Actually, I have read MediaEngineWebRTC.cpp, but I afraid it is too simple to 
work for me.

I will take a look at media/libcubeb and media/omx-plugin to learn more 
knowledge about how to use JNI correctly on Fennec.

BR,
Lu Qiang

From: mobile-firefox-dev [mailto:[email protected]] On 
Behalf Of Bradford Lassey
Sent: Tuesday, October 29, 2013 10:27 AM
To: [email protected]
Subject: Re: About calling android sdk java api from c++ code under 
content/media/

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]<mailto:[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