I see the same problem as you, works in vlc, not with libvlc. According to the logs it reads the CD TOC, does a CDDB look-up, I can see the right number of tracks reported in the log, but the audio fails to play.Yes, the same. I got an error message: main stream error: cannot pre fill buffer. But I try with compiled vlc program it works well
Code: Select all
mediaPlayer.playMedia("cdda:///dev/cdrom", ":cdda-track=6");
I believe you have to play the media to get the sub-items populated - play and then wait for the "error" callback.As you said, I try to parse a audio CD to get list of sub-items like this:
libvlc_media_t* media = libvlc_media_new_location(instance, "cdda:///dev/cdrom3");
libvlc_media_list_t* mediaList = libvlc_media_subitems(media);
But, I don't know why mediaList is NULL value after call libvlc_media_subitems. something wrong with my code?
+1Patch welcome.
Return to “Development around libVLC”
Users browsing this forum: No registered users and 8 guests