MediaCapture.FindKnownVideoProfiles(String, KnownVideoProfile) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
擷取指定視訊擷取裝置所支援的所有視訊配置檔案清單,該裝置符合指定的 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 來擷取影片擷取裝置支援的所有視訊設定檔。
如需使用相機設定檔的操作指南,請參閱 探索及選取具有相機設定檔的相機功能。
適用於
另請參閱
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應