MediaCapture.FindKnownVideoProfiles(String, KnownVideoProfile) 方法

定義

擷取指定視訊擷取裝置所支援的所有視訊配置檔案清單,該裝置符合指定的 KnownVideoProfile 值。

public:
 static IVectorView<MediaCaptureVideoProfile ^> ^ FindKnownVideoProfiles(Platform::String ^ videoDeviceId, KnownVideoProfile name);
 static IVectorView<MediaCaptureVideoProfile> FindKnownVideoProfiles(winrt::hstring const& videoDeviceId, KnownVideoProfile const& name);
public static IReadOnlyList<MediaCaptureVideoProfile> FindKnownVideoProfiles(string videoDeviceId, KnownVideoProfile name);
function findKnownVideoProfiles(videoDeviceId, name)
Public Shared Function FindKnownVideoProfiles (videoDeviceId As String, name As KnownVideoProfile) As IReadOnlyList(Of MediaCaptureVideoProfile)

參數

videoDeviceId
String

Platform::String

winrt::hstring

系統會查詢支援的視訊設定檔的視訊裝置識別碼。 如需取得影片裝置識別碼的詳細資訊,請參閱 DeviceInformation.FindAllAsync

name
KnownVideoProfile

值,指定系統已知的其中一個設定檔名稱。

傳回

符合指定已知設定檔名稱之指定影片擷取裝置所支援的視訊配置檔案清單。

Windows 需求

應用程式功能
backgroundMediaRecording

備註

呼叫此方法之前,請先呼叫 IsVideoProfileSupported 以確保擷取裝置支援視訊設定檔。

此方法可讓您使用其中一個 KnownVideoProfile 值來要求具有特定功能的設定檔。 某些硬體可能支援未對應至任何已知設定檔名稱的其他設定檔。 使用 FindAllVideoProfiles 來擷取影片擷取裝置支援的所有視訊設定檔。

如需使用相機設定檔的操作指南,請參閱 探索及選取具有相機設定檔的相機功能

適用於

另請參閱