I am writing an application that catch a stream video from a wifi camera and I am using LibVLC to retrieve the video.
So, before implementing my application, I have tested LibVLC with the example code, but it crashes on function libvlc_media_new_location
I am using this Framework on Mac OS X El Capitan with Xcode, the dialect of C++ is std=c++11 and libc++ (LLVM).
This is the example code that doesn't work:
libvlc_instance_t * inst;
libvlc_media_player_t *mp;
libvlc_media_t *m;
/* Load the VLC engine */
inst = libvlc_new (0, NULL);
/* Create a nxxew item, this is the line that crashes*/
m = libvlc_media_new_location (inst, "http://mycool.movie.com/test.mov");
/* Create a media player playing environement */
mp = libvlc_media_player_new_from_media (m);
/* No need to keep the media now */
libvlc_media_release (m);
Could you help me please ? Thanks in advance for response.
Aucun commentaire:
Enregistrer un commentaire