public string FriendlyName { get; } public:property String^ FriendlyName {String^ get();}
A character string that contains the device's descriptive name.
Gets a character string that contains the device's descriptive name. The device's descriptive name is not unique. However, it is ideal for presenting a descriptive name in user interfaces.
using Leadtools;using Leadtools.Multimedia;using LeadtoolsMultimediaExamples.Fixtures;public bool _result = false;public ConvertCtrlForm _form = new ConvertCtrlForm();public void TargetDevicesExample(){string inputName, inputFriendlyName;int selectedCamera;// reference the convert controlConvertCtrl convertctrl = _form.ConvertCtrl;try{// get the target devices objectTargetDevices devices = convertctrl.TargetDevices;// select an output by name if possibleif (devices["Microsoft DV Camera"] == null){MessageBox.Show("No MS DV Camera device available! Please connect the device and click OK.");devices.Refresh();if (devices["Microsoft DV Camera"] == null)throw new Exception("No MS DV Camera device available!");}devices["Microsoft DV Camera"].Selected = true;// get the full friendly name of the devicestring friendlyName = devices["Microsoft DV Camera"].FriendlyName;// get the selected index of the currently selected target device// (the MS DV camera above)selectedCamera = devices.Selection;// now enumerate all the target devices,// looking for an audio device and select itforeach (TargetDevice td in devices){// get the inputs propertiesinputName = td.Name;inputFriendlyName = td.FriendlyName;// if we found a target audio deviceif (inputFriendlyName.Contains("Audio")){// select it and breaktd.Selected = true;break;}}// set the result to what we expect_result = (selectedCamera != devices.Selection);}catch (Exception){_result = false;}}
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document
