the code below plays the file fine, and the buttons/controls are all there
(play/stop/scroll/etc), but they are all *disabled* for some reason
(i can close, the window, but that's it).
the only way i can control the playback is via my pgm.
very tired of banging head against wall - any advice would be greatly appreciated !
also:
it would also be great if i could play a file *within* the existing VLC gui
(as if i selected/played a file the "normal" way).
but it appears that the only way i can play files via a pgm as to
create a new/dedicated instance.
is there a way i can play a file (via a pgm) just as if the user played it "manually" ?
and is there a way that one can *passively* monitor vlc activities ?
i.e. can i passively monitor what is being played ?
thanks,
mark
------
const char * const vlc_args[] = {
"--plugin-path=c:\\program files\\videolan\\vlc\\plugins",
0};
libvlc_exception_t ex;
libvlc_instance_t * inst;
libvlc_media_player_t *my_media_player;
libvlc_media_t *my_media;
libvlc_exception_init(&ex);
inst = libvlc_new(1, vlc_args, &ex);
my_media = libvlc_media_new(inst, arg[1], &ex);
my_media_player = libvlc_media_player_new(inst, &ex);
libvlc_media_player_set_media(my_media_player, my_media, &ex);
libvlc_add_intf(inst, "qt4", &ex); // ??: IF I DON'T DO THIS, I CANNOT EVEN CLOSE WINDOW
libvlc_media_player_play(my_media_player, &ex);
while (! kbhit())
{
Sleep(100);
}
libvlc_media_player_stop(my_media_player, &ex);
libvlc_media_release(my_media); // ??:"No need to keep the media now"
libvlc_media_player_release(my_media_player);
libvlc_release(inst);