androidandroid-ndkstagefright

How to import media/stagefright/* classes in Android native code


I'm trying to compile some NDK code (via ndk-build ), but I get this error :

[armeabi] Compile++ thumb: wfd_jni <= SinkPlayer.cpp
In file included from jni/SinkPlayer.cpp:4:0:
jni/SinkPlayer.h:5:48: fatal error: media/stagefright/foundation/ABase.h: No such file or directory
 #include <media/stagefright/foundation/ABase.h>

I tried importing the same project in Android Studio, but it still doesn't find the media/* imports (it shows those lines in red )

Most likely I have to include that package in my build path somewhere, but this is my first time working with the NDK and I cannot figure what to do.


Solution

  • Stagefright is not park of the public API, so is not included in the NDK. It is internal to the media framework on Android.