"-I=dummy",
"--vout=dummy",
"--network-caching=5000",
"--sout=#rtp{sdp=rtsp://:8554/ch1}", "--sout-all", "--sout-keep",
"--verbose=2",
"--file-logging", logFile,
};
int vlc_argc = sizeof(vlc_args) / sizeof(vlc_args[0]);
vlcInstance = libvlc_new(vlc_argc, vlc_args);
const char *psz_mrl = "rtsp://169.254.1.168:554/live2.sdp";
media = libvlc_media_new_location(vlcInstance, psz_mrl);
mp = libvlc_media_player_new_from_media(media);
//libvlc_media_player_set_hwnd(mp, GetDlgItem(IDC_VIEWER)->m_hWnd);
沒有留言:
張貼留言