MediaCapture.StartRecordToCustomSinkAsync 方法

定義

多載

StartRecordToCustomSinkAsync(MediaEncodingProfile, IMediaExtension)

使用指定的編碼設定檔開始錄製到自訂媒體接收。

StartRecordToCustomSinkAsync(MediaEncodingProfile, String, IPropertySet)

使用指定的編碼設定檔和接收設定,開始錄製到自訂媒體接收。

StartRecordToCustomSinkAsync(MediaEncodingProfile, IMediaExtension)

使用指定的編碼設定檔開始錄製到自訂媒體接收。

public:
 virtual IAsyncAction ^ StartRecordToCustomSinkAsync(MediaEncodingProfile ^ encodingProfile, IMediaExtension ^ customMediaSink) = StartRecordToCustomSinkAsync;
/// [Windows.Foundation.Metadata.Overload("StartRecordToCustomSinkAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncAction StartRecordToCustomSinkAsync(MediaEncodingProfile const& encodingProfile, IMediaExtension const& customMediaSink);
[Windows.Foundation.Metadata.Overload("StartRecordToCustomSinkAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncAction StartRecordToCustomSinkAsync(MediaEncodingProfile encodingProfile, IMediaExtension customMediaSink);
function startRecordToCustomSinkAsync(encodingProfile, customMediaSink)
Public Function StartRecordToCustomSinkAsync (encodingProfile As MediaEncodingProfile, customMediaSink As IMediaExtension) As IAsyncAction

參數

encodingProfile
MediaEncodingProfile

用於錄製的編碼設定檔。

customMediaSink
IMediaExtension

自訂媒體接收的媒體延伸模組。

傳回

物件,用來控制非同步作業。

屬性

Windows 需求

應用程式功能
backgroundMediaRecording

備註

如果超過記錄限制,則會引發 RecordLimitationExceeded 事件。 在目前版本中,記錄限制為三小時。

另請參閱

適用於

StartRecordToCustomSinkAsync(MediaEncodingProfile, String, IPropertySet)

使用指定的編碼設定檔和接收設定,開始錄製到自訂媒體接收。

public:
 virtual IAsyncAction ^ StartRecordToCustomSinkAsync(MediaEncodingProfile ^ encodingProfile, Platform::String ^ customSinkActivationId, IPropertySet ^ customSinkSettings) = StartRecordToCustomSinkAsync;
/// [Windows.Foundation.Metadata.Overload("StartRecordToCustomSinkIdAsync")]
IAsyncAction StartRecordToCustomSinkAsync(MediaEncodingProfile const& encodingProfile, winrt::hstring const& customSinkActivationId, IPropertySet const& customSinkSettings);
[Windows.Foundation.Metadata.Overload("StartRecordToCustomSinkIdAsync")]
public IAsyncAction StartRecordToCustomSinkAsync(MediaEncodingProfile encodingProfile, string customSinkActivationId, IPropertySet customSinkSettings);
function startRecordToCustomSinkAsync(encodingProfile, customSinkActivationId, customSinkSettings)
Public Function StartRecordToCustomSinkAsync (encodingProfile As MediaEncodingProfile, customSinkActivationId As String, customSinkSettings As IPropertySet) As IAsyncAction

參數

encodingProfile
MediaEncodingProfile

用於錄製的編碼設定檔。

customSinkActivationId
String

Platform::String

winrt::hstring

自訂媒體接收之媒體延伸模組的可啟用類別識別碼。

customSinkSettings
IPropertySet

包含媒體延伸模組的屬性。

傳回

物件,用來控制非同步作業。

屬性

Windows 需求

應用程式功能
backgroundMediaRecording

備註

如果超過記錄限制,則會引發 RecordLimitationExceeded 事件。 在目前版本中,記錄限制為三小時。

另請參閱

適用於