Gstreamer hangs application for 2 minutes on first usage of nativePlay or nativePause

Matthew Ruth mruth at sbimagingsystems.com
Tue Feb 2 15:28:27 PST 2016


As the title states, I have a gstreamer application that is working on Android Studio. I'm using a Gstreamer pipeline to stream video wirelessly, and it works well each time except for the first time I call one of the native functions nativePlay or nativePause. I thought it had to do with actually initializing Gstreamer but I see that Gstreamer is initialized for me before onResume, so it should be initialized before I attempt to call these functions.

My question is, what is it about the first function call of nativePlay() or nativePause() that is hanging my app for 2 minutes (Skipping 7,000 frames of video stream), but when it finishes and I try it again it works perfectly?

Also, more importantly, how can I circumvent that wait time?

Thanks so much,
Matthew Ruth
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-android/attachments/20160202/7ae3fc6e/attachment.html>


More information about the gstreamer-android mailing list