Android Examples updated for Android Studio

Hello!
I hope you´re doing great.
I´m very very new in Gstreamer and I need to play a RTSP with h265 for Android mobile.
I donwload the examples to have a reference that can work and I found a couple of issues.

  1. The examples 2,3,4,5 without any modification, generates an ANR while playing on Android. To fix that in the Android.mk I had to manually add the plugins like:

GSTREAMER_PLUGINS := coreelements

Any suggestion to fix that???

  1. On the other hand, I was not able to play any video either locally or just a basic one like:
    https://storage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4

Also, when I try the rstp video I got: rtspsrc2: Could not open resource for reading and writing. This is after trying to change the tutorial 5.c with the gstreamer comand that i need: “rtspsrc location=rtsp://192.0.0.0”

Any help or suggestion???
Thanks in advance.

It’s a little late, but if you (or anyone) still struggle:

  1. In GStreamer official tutorial for Android development, you can add these lines in Android.mk file:

    include $(GSTREAMER_NDK_BUILD_PATH)/plugins.mk
    GSTREAMER_PLUGINS  := $(GSTREAMER_PLUGINS_CORE) $(GSTREAMER_PLUGINS_CODECS)
    

    with GSTREAMER_PLUGINS is listed at the end of the page. Please be aware this list is not updated, you may want to either read the plugins.mk in their prebuilt binary package, or trial-and-error.

  2. I am not 100% sure the problem of playing the video, but maybe you want to check if permission to use the Internet is already in the AndroidManifest.xml file.

  3. rtspsrc2: Could not open resource for reading and writing. The error shows there is no source to open. The way the tutorial of #3, 4 and 5 set up is to initialize the pipeline immediately at onCreate() function. You need to make sure the video at your location must be available first, even before you open the application, OR delay the gstreamer init() by adding user-interface interactions.