Record RTSP stream with VLC Plugin v2
Posted: 29 Aug 2012 09:49
Hello,
I use the VLC active X v2 into a program. But my problem is that I can only display stream with the command playlist.add, I'm unable to pass options to this command.
Here is my code:
I think I made maybe some mistake with syntax of the option. I tried also with simple options like fullscreen but it still doesn't work.
I hope someone can help me.
Thanks in advance.
Regards.
I use the VLC active X v2 into a program. But my problem is that I can only display stream with the command playlist.add, I'm unable to pass options to this command.
Here is my code:
Code: Select all
string comd = ":sout=#duplicate{dst=display,dst=std{access=file,mux=mp4,dst=\"C:\\test.mp4\"}}";
DebugN(comd);
VideoLAN_VLCPlugin_22.playlist.clear();
int tid= VideoLAN_VLCPlugin_22.playlist.add("rtsp://192.168.0.2", "", comd);
VideoLAN_VLCPlugin_22.playlist.playItem(tid);
I hope someone can help me.
Thanks in advance.
Regards.