Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Vlc "No associated media descriptor"

Vlc "No associated media descriptor"

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 1 Posters 970 Views
  • 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 Offline
    Y Offline
    Yacinoben
    wrote on last edited by
    #1

    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
    0
    • Y Offline
      Y Offline
      Yacinoben
      wrote on last edited by Yacinoben
      #2

      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
      1

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved