Vlc "No associated media descriptor"



  • hello,

    I would like to read a list of a media, but when i run the programm, i get this message : libvlc Error: "No associated media descriptor"

    my code :

     VlcInstance *instance = new VlcInstance(QStringList(),this);
      VlcMediaPlayer *player = new VlcMediaPlayer(instance);
      VlcMediaListPlayer *list_media_player = new VlcMediaListPlayer(player,instance);
      VlcWidgetVideo *vlc= new  VlcWidgetVideo(player,this);
    
      player->setVideoWidget(vlc);
    
      VlcMediaList* list_media = new VlcMediaList(instance);
    
       foreach(QString path, m_list_video)
        {
          VlcMedia *media = new VlcMedia("Video/video.flv",true,instance);
          list_media->addMedia(media);
        }
      list_media_player->setMediaList(list_media);
      player->play();
    

    Thanks !



  • Solved
    the new code :

      VlcInstance *instance = new VlcInstance(m_list_video,this);
      VlcMediaListPlayer *list_media_player = new VlcMediaListPlayer(instance);
      VlcWidgetVideo *vlc= new  VlcWidgetVideo(this);
    
      VlcMediaList* list_media = new VlcMediaList(instance);
    
       foreach(QString path, m_list_video)
        {
          VlcMedia *media = new VlcMedia("Video/video.flv",true,instance);
          list_media->addMedia(media);
        }
      list_media_player->setMediaList(list_media);
      list_media_player->play();
    
    

Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.