Code: Select all
sprintf(smem_options,"#duplicate{dst=display,select=noaudio,dst=\"transcode{vcodec=none,acodec=s16l}:smem{"
"audio-postrender-callback=%lld,"
"audio-prerender-callback=%lld},"
"audio-data=%lld\"",
(long long int)(intptr_t)(void*)&handle_stream,
(long long int)(intptr_t)(void*)&prepare_render,
);
const char * const *vlc_args[] = {"-vvv","--sout",smem_options};
inst = libvlc_new(sizeof(vlc_args)/sizeof(vlc_args[0]),vlc_args);
libvlc_add_intf(inst,"qt");
when i add interface using libvlc_add_intf(inst,"qt");
-->It immediately launches qt window and i am opening a video file to play using the same qt window,
Video is displaying on the qt window and audio via the provided smem callbacks is converting into pcm format everything works fine as i expected.
But here comes the issue ,
-->How can i get the audio delay,video delay and the Media Player data when vlc is launched via libvlc_add_intf();
These info. as I understand can be obtained via the media_player_t object. So, how can I obtain media_player when vlc is launched via add_intf() isn't there a get_current_media_player_from_instance() kind of function available?
-->Note: I am not using libvlc_media_player_play(mp); I am able to get the required info, when I use this.