[Resolved] Error: no associated media descriptor

This forum is about all development around libVLC.
edmargomes
New Cone
New Cone
Posts: 3
Joined: 26 Oct 2009 19:52

[Resolved] Error: no associated media descriptor

Postby edmargomes » 26 Oct 2009 19:59

hi,

this error show in my code:
error: no associated media descriptor

someone help me?

Code: Select all

int main(int argc, char **argv) { //variavel que armazena o exception libvlc_exception_t excp; //intancia do vlc libvlc_instance_t *inst; //playlist libvlc_media_list_t *playList; //armazena um identificar para o novo item na playlist int item; //parametros que serão enviados ao aplicativo char *myarg0 = "-I"; char *myarg1 = "dummy"; char *myarg2 = "--plugin-path=C:\\Users\\edmar\\Downloads\\vlc-1.0.2-win32\\vlc-1.0.2\\plugins"; char *myarg3 = "--loop"; char *myarg4 = "--reset-config"; //char *myarg2 = "--plugin-path=C:\\Arquivos de programas \\VideoLAN\\VLC\\plugins"; char *myargs[6] = {myarg0, myarg1, myarg2, myarg3, myarg4, NULL}; //caminho do video que deverá ser tocado char *filename0 = "C:\\videos\\RED000060.wmv"; char *filename1 = "C:\\videos\\RED000182.wmv"; //inicializa o exception libvlc_exception_init (&excp); //cria a instancia do vlc inst = libvlc_new (5, myargs, &excp); //verifica se teve erro quit_on_exception (&excp); setup_media_list(inst); //cria um player libvlc_media_player_t * player = libvlc_media_player_new(inst,&excp); //verifica se teve erro quit_on_exception (&excp); //cria uma midia libvlc_media_t *media = libvlc_media_new(inst, filename1, &excp); //verifica se teve erro quit_on_exception (&excp); //cria uma playlist playList = libvlc_media_list_new(inst,&excp); //verifica se teve erro quit_on_exception (&excp); //carrega uma playlist libvlc_media_list_add_media(playList,media, &excp ); //verifica se teve erro quit_on_exception (&excp); //clia uma list player libvlc_media_list_player_t *listPlayer = libvlc_media_list_player_new(inst, &excp); //verifica se teve erro quit_on_exception (&excp); //carrega a playlist libvlc_media_list_player_set_media_list(listPlayer, playList, &excp); //verifica se teve erro quit_on_exception (&excp); //tenta dar o play libvlc_media_player_play (player, &excp); //verifica se teve erro quit_on_exception (&excp); while(1) { Sleep (5000); } Sleep (50000); //libvlc_destro (inst); return 0; }

Thanks!!
Last edited by edmargomes on 28 Oct 2009 12:33, edited 1 time in total.

edmargomes
New Cone
New Cone
Posts: 3
Joined: 26 Oct 2009 19:52

Re: Error: no associated media descriptor

Postby edmargomes » 26 Oct 2009 20:00

the path video is correct!

edmargomes
New Cone
New Cone
Posts: 3
Joined: 26 Oct 2009 19:52

Re: Error: no associated media descriptor - resolved

Postby edmargomes » 26 Oct 2009 21:41

change line
libvlc_media_player_play (player, &excp);
to
libvlc_media_list_player_play (listPlayer, &excp);

libvlc_media_player_play is only to media and not to playlist


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 57 guests