Skip to content

media discoverers doesn't display webcams

Summary

Media discoverer doesn't find video capture devices

Minimal project and steps to reproduce

            Core.Initialize();

            using var libvlc = new LibVLC();

            var mds = libvlc.MediaDiscoverers(MediaDiscovererCategory.Devices);

            Console.WriteLine($" number of mds: {mds.Count()}");
            foreach (var dm in mds)
            {
                Console.WriteLine($"{dm.Category} {dm.Name} {dm.LongName}");
                //display only disc
            }

            if (mds.Any(x => x.LongName == "Video capture"))
            {
                var devices = mds.First(x => x.LongName == "Video capture");
                var md = new MediaDiscoverer(libvlc, devices.Name);
                md.Start();
                foreach (var media in md.MediaList)
                {
                    Console.WriteLine($" _ {media.Mrl}");
                }
            }

What is the current bug behavior?

I get only devices disc in code above

What is the expected correct behavior?

list of devices disc, video capture, audio capture etc

Does it work on other plaforms? Does it work with the official VLC apps?

in VLC player I can select 2 other webcams and one video grabber

Environment

  • OS: Windows 11
  • Version [e.g. 22]
  • Device: pc amd
  • LibVLC version and architecture [e.g. 3.7, x64]
  • LibVLCSharp version 3.0.18
Edited by Jacek Placek
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information