Udostępnij za pośrednictwem


MediaCapture.FindAllVideoProfiles(String) Method

Definition

Retrieves the list of all video profiles supported by the specified video capture device.

public:
 static IVectorView<MediaCaptureVideoProfile ^> ^ FindAllVideoProfiles(Platform::String ^ videoDeviceId);
 static IVectorView<MediaCaptureVideoProfile> FindAllVideoProfiles(winrt::hstring const& videoDeviceId);
public static IReadOnlyList<MediaCaptureVideoProfile> FindAllVideoProfiles(string videoDeviceId);
function findAllVideoProfiles(videoDeviceId)
Public Shared Function FindAllVideoProfiles (videoDeviceId As String) As IReadOnlyList(Of MediaCaptureVideoProfile)

Parameters

videoDeviceId
String

Platform::String

winrt::hstring

The identifier of the video device for which supported video profiles are queried. For information on getting the video device ID, see DeviceInformation.FindAllAsync.

Returns

The list of video profiles supported by the specified video capture device.

Windows requirements

App capabilities
backgroundMediaRecording

Remarks

Before calling this method, call IsVideoProfileSupported to make sure that the capture device supports video profiles.

Use FindKnownVideoProfiles to request profiles with specific functionality using one of the KnownVideoProfile values.

For how-to guidance for working with camera profiles, see Discover and select camera capabilities with camera profiles.

Applies to

See also