libVLC & JNI issue, Subscribing to new event in EventHandler
Posted: 02 Jun 2014 04:27
Hey there,
So I've downloaded VLC code, compiled it, took libVLC and used it in my Android app to stream RTMP. Works like a charm. Now for our purposes there is very crucial info being sent through the RTMP stream's metadata, so I need to listen to that too. Currently that event is not subscribed.
Therefore, I uncommented the line in EventHandler.java and added libvlc_MediaMetaChanged to the mp_events array in libvlcjni.c (line 366) and recompiled libVLC but it just won't work (crashes the moment I try to play anything). It keeps failing the assertion in event_attach (line 373 of event.c). Could someone please help me out? I don't know what I'm missing or why it can't attach.
Thanks!
So I've downloaded VLC code, compiled it, took libVLC and used it in my Android app to stream RTMP. Works like a charm. Now for our purposes there is very crucial info being sent through the RTMP stream's metadata, so I need to listen to that too. Currently that event is not subscribed.
Therefore, I uncommented the line in EventHandler.java and added libvlc_MediaMetaChanged to the mp_events array in libvlcjni.c (line 366) and recompiled libVLC but it just won't work (crashes the moment I try to play anything). It keeps failing the assertion in event_attach (line 373 of event.c). Could someone please help me out? I don't know what I'm missing or why it can't attach.
Thanks!