Hi,
I want to use the vlm api library in my own application to create a vod stream. Therefore I have to following code (for prototyping):
int main(int argc, char **argv)
{
const char* psz_name = "test";
/* Load the VLC engine */
libvlc = libvlc_new(0, NULL);
libvlc_vlm_add_vod(libvlc, psz_name, "rtsp://192.168.1.201:554/axis-media/media.amp", 0, NULL, false, NULL);
libvlc_vlm_set_output(libvlc, psz_name, "#rtp{sdp=rtsp://192.168.1.101:5678/axis-media/media.amp}");
libvlc_vlm_set_enabled(libvlc, psz_name, true);
sleep(60);
libvlc_vlm_release (libvlc);
return 0;
}
If I run this code, I have two issues:
1. by using the rtp option you can not make a vod stream (which is exactly what the documentation describes). To make a vod stream, I should not use the rtp option, but how can I specify the outgoing port (5678 in the example code)?
2. when I run the libvlc_vlm_set_enabled call, the program does never get back. Do I use these library calls in a wrong way?
BTW, if I try to create my usecase by using the vlc application and the telnet connection for vlm, everything works fine. However, I have to embed this in my own application.
Any help would be appreciated.
Best regards,
Frank