netsync not work with libvlc?

This forum is about all development around libVLC.
ezcom
New Cone
New Cone
Posts: 2
Joined: 22 Oct 2015 20:38

netsync not work with libvlc?

Postby ezcom » 13 Nov 2015 07:42

=================================================================== 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'

ezcom
New Cone
New Cone
Posts: 2
Joined: 22 Oct 2015 20:38

Re: netsync not work with libvlc?

Postby ezcom » 13 Nov 2015 14:46

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!!!!

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: netsync not work with libvlc?

Postby Jean-Baptiste Kempf » 25 Nov 2015 17:36

Cool :D
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 17 guests