libvlc_exception_init (&ex); /* init vlc modules, should be done only once */ inst = libvlc_new (sizeof(vlc_args) / sizeof(vlc_args[0]), vlc_args, &ex); raise (&ex);
/* Create a new item */ m = libvlc_media_new (inst, "rtsp://127.0.0.1:8554/crazystone.ts", &ex); raise (&ex);
/* XXX: demo art and meta information fetching */
/* Create a media player playing environement */ mp = libvlc_media_player_new_from_media (m, &ex); raise (&ex);
/* No need to keep the media now */ libvlc_media_release (m);
#if 0 /* This is a non working code that show how to hooks into a window, * if we have a window around */ libvlc_drawable_t drawable = xdrawable; /* or on windows */ libvlc_drawable_t drawable = hwnd;