Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Solved Vlc "No associated media descriptor"

    General and Desktop
    1
    2
    703
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Y
      Yacinoben last edited by

      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 !

      1 Reply Last reply Reply Quote 0
      • Y
        Yacinoben last edited by Yacinoben

        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();
        
        
        1 Reply Last reply Reply Quote 1
        • Y
          Yacinoben last edited by Yacinoben

          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();
          
          
          1 Reply Last reply Reply Quote 1
          • First post
            Last post