Page 1 of 1

netsync not work with libvlc?

Posted: 13 Nov 2015 07:42
by ezcom
=================================================================== when vlc with command line option
C:\Program Files (x86)\VideoLAN\VLC\vlc --network-synchronisation --netsync-master-ip 192.168.0.15

It works well :lol: .
=================================================================== but when libvlc in C or C++
char const *vlc_argv[] = {
"--network-synchronisation",
"--netsync-master-ip 192.168.0.15"
};
int vlc_argc = sizeof(vlc_argv) / sizeof(*vlc_argv);
libvlc = libvlc_new(vlc_argc, vlc_argv); <==================== at this monent

---------------------------------------------------------------------------------------------- log :oops:
vlc: unknown option or missing mandatory argument `--netsync-master-ip 192.168.0.15'

Re: netsync not work with libvlc?

Posted: 13 Nov 2015 14:46
by ezcom
Self answer :wink:

char const *vlc_argv[] = {
"--network-synchronisation",
"--netsync-master-ip",
"192.168.0.15"

};
int vlc_argc = sizeof(vlc_argv) / sizeof(*vlc_argv);
libvlc = libvlc_new(vlc_argc, vlc_argv);
----------------------------------------------------------------
It works!!!!

Re: netsync not work with libvlc?

Posted: 25 Nov 2015 17:36
by Jean-Baptiste Kempf
Cool :D