Quantcast

nativeInit() outside onCreate()

classic Classic list List threaded Threaded
3 messages Options
JPM
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

nativeInit() outside onCreate()

JPM
Hi,

Is it possible to execute nativeInit() outside onCreate() in Android Tutorial3 ?

Regards.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: nativeInit() outside onCreate()

Sebastian Dröge-3
On Sun, 2017-04-30 at 10:21 -0700, JPM wrote:
> Hi,
>
> Is it possible to execute nativeInit() outside onCreate() in Android
> Tutorial3 ?

You can call it from whatever place you want, it just must be before
using any other GStreamer API.

--
Sebastian Dröge, Centricular Ltd · http://www.centricular.com
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (1019 bytes) Download Attachment
JPM
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: nativeInit() outside onCreate()

JPM
Whe I call nativeInit() inside a thread the log is only "State changed to READY".

Calling it in onCreate() works : READY -> PAUSED -> PLAYING.

Regards.
Loading...