Share via


MediaCaptureSettings 類別

定義

包含 MediaCapture 物件的唯讀組態設定。

public ref class MediaCaptureSettings sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Standard)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.MTA)]
class MediaCaptureSettings final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Standard)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.MTA)]
public sealed class MediaCaptureSettings
Public NotInheritable Class MediaCaptureSettings
繼承
Object Platform::Object IInspectable MediaCaptureSettings
屬性

Windows 需求

裝置系列
Windows 10 (已於 10.0.10240.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v1.0 引進)
應用程式功能
backgroundMediaRecording microphone webcam

備註

若要取得這個類別的實例,請擷取 MediaCapture.MediaCaptureSettings 屬性。

如需使用 MediaCapture 物件來擷取音訊、相片和視訊的作法指引,請參閱 相機

注意

這個類別不是敏捷的,這表示您必須考慮其執行緒模型和封送處理行為。 如需詳細資訊,請參閱執行緒和封送處理 (C++/CX) 在多執行緒環境中使用 Windows 執行階段 物件 (.NET)

版本歷程記錄

Windows 版本 SDK 版本 新增值
1803 17134 Direct3D11Device

屬性

AudioDeviceId

取得麥克風 的 DeviceInformation.Id

AudioProcessing

取得音訊處理模式。

CameraSoundRequiredForRegion

取得值,指出裝置的區域是否需要在擷取相片或視訊時播放音效。

ConcurrentRecordAndPhotoSequenceSupported

取得值,這個值表示擷取裝置是否支援錄製視訊並同時拍攝相片序列。

ConcurrentRecordAndPhotoSupported

取得值,這個值表示擷取裝置是否支援錄製視訊並同時拍攝相片。

Direct3D11Device

取得 IDirect3DDevice ,表示相關聯 MediaCapture 物件所使用的 Direct3D 裝置實例。

Horizontal35mmEquivalentFocalLength

取得擷取裝置上相機鏡頭的水準 35mm 對等焦點長度。

MediaCategory

取得媒體的媒體類別。

PhotoCaptureSource

取得用於相片擷取的資料流程。

PitchOffsetDegrees

取得相機的間距位移,以度為單位。

StreamingCaptureMode

取得串流模式。

Vertical35mmEquivalentFocalLength

取得擷取裝置上相機鏡頭的垂直 35mm 對等焦點長度。

VideoDeviceCharacteristic

取得值,這個值表示哪些視訊串流彼此獨立。

VideoDeviceId

取得視訊相機 的 DeviceInformation.Id

適用於