MediaCapture.FindConcurrentProfiles(String) MediaCapture.FindConcurrentProfiles(String) MediaCapture.FindConcurrentProfiles(String) MediaCapture.FindConcurrentProfiles(String) MediaCapture.FindConcurrentProfiles(String) Method

Definition

Retrieves the list of video profiles supported by the specified video capture device that can be used while another profile is used on a different capture device.

public : static IVectorView<MediaCaptureVideoProfile> FindConcurrentProfiles(Platform::String videoDeviceId)
static IVectorView<MediaCaptureVideoProfile> FindConcurrentProfiles(winrt::hstring videoDeviceId) const;
public static IReadOnlyList<MediaCaptureVideoProfile> FindConcurrentProfiles(String videoDeviceId)
Public Shared Function FindConcurrentProfiles(videoDeviceId As String) As IReadOnlyList<MediaCaptureVideoProfile>(Of MediaCaptureVideoProfile)
var iVectorView = Windows.Media.Capture.MediaCapture.findConcurrentProfiles(videoDeviceId);

Parameters

videoDeviceId
String String String

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

IReadOnlyList<MediaCaptureVideoProfile> IReadOnlyList<MediaCaptureVideoProfile> IReadOnlyList<MediaCaptureVideoProfile>

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

Additional features and requirements

Capabilities
backgroundMediaRecording

Remarks

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

This method supports the scenario where you capture video from two capture devices at the same time, such as a device's front camera and rear camera. Call the GetConcurrency method of one of the MediaCaptureVideoProfile objects in the returned list to get a list of profiles that can be used concurrently with that profile.

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

See also