Code: Select all
libvlc_instance_t * inst;
libvlc_media_player_t *mp;
libvlc_media_t *m;
/* Load the VLC engine */
inst = libvlc_new (0, NULL);
/* Create a new item */
m = libvlc_media_new_path (inst, "rtp://10.0.0.1:5100/Video2");
//m = libvlc_media_new_path (inst, "/path/to/test.mov");
mp = libvlc_media_player_new_from_media (m);
libvlc_media_player_play (mp);