Integration of Gstreamer in AOSP source code

I have to create an audio/video application in AOSP for that I am using Gstreamer. I am able to create application using Android Studio successfully. However, I don’t know How it can be done in AOSP source code.

“I’m new to AOSP and need to integrate GStreamer for video streaming. I understand that I need to add the GStreamer prebuilt library to the external folder in the AOSP source tree, but the prebuilt binary is ~1.24GB zipped and expands to ~9GB. Is it correct to add such a large library directly, or am I missing a better approach? Also, if I do add it to the external folder, how can I reference it correctly from other folders? Are there any step-by-step guides for integrating GStreamer into AOSP?”

How do I correctly reference the GStreamer library from other parts of the AOSP source tree?

  • For example, how do I configure the Android.bp or Android.mk files to link with GStreamer?

Its urgent. Please help.