MediaTranscoder.PrepareMediaStreamSourceTranscodeAsync 方法

定义

异步初始化指定媒体源上的 trancode 操作,并返回可用于启动转码操作的 PrepareTranscodeResult 对象。

public:
 virtual IAsyncOperation<PrepareTranscodeResult ^> ^ PrepareMediaStreamSourceTranscodeAsync(IMediaSource ^ source, IRandomAccessStream ^ destination, MediaEncodingProfile ^ profile) = PrepareMediaStreamSourceTranscodeAsync;
IAsyncOperation<PrepareTranscodeResult> PrepareMediaStreamSourceTranscodeAsync(IMediaSource const& source, IRandomAccessStream const& destination, MediaEncodingProfile const& profile);
public IAsyncOperation<PrepareTranscodeResult> PrepareMediaStreamSourceTranscodeAsync(IMediaSource source, IRandomAccessStream destination, MediaEncodingProfile profile);
function prepareMediaStreamSourceTranscodeAsync(source, destination, profile)
Public Function PrepareMediaStreamSourceTranscodeAsync (source As IMediaSource, destination As IRandomAccessStream, profile As MediaEncodingProfile) As IAsyncOperation(Of PrepareTranscodeResult)

参数

source
IMediaSource

要对其执行转码操作的媒体源。

destination
IRandomAccessStream

转码媒体数据的目标流。

profile
MediaEncodingProfile

要用于操作的配置文件。

返回

此方法完成后,将返回可用于启动转码的 PrepareTranscodeResult 对象。

适用于