QT design video player code example
Example 1: qt video player with codecs
//Use some qt widget for displaying the video:
libvlc_media_player_set_drawable(player, some_widget->winId());
Example 2: qt video player with codecs
//Initialization
libvlc_instance_t *vlcinstance = libvlc_new(0, NULL);
libvlc_media_player_t *player = libvlc_media_player_new(vlcinstance);
libvlc_media_t *media = libvlc_media_new_path(vlcinstance, file_path);