MediaTranscoder.PrepareFileTranscodeAsync 方法

定义

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

public:
 virtual IAsyncOperation<PrepareTranscodeResult ^> ^ PrepareFileTranscodeAsync(IStorageFile ^ source, IStorageFile ^ destination, MediaEncodingProfile ^ profile) = PrepareFileTranscodeAsync;
IAsyncOperation<PrepareTranscodeResult> PrepareFileTranscodeAsync(IStorageFile const& source, IStorageFile const& destination, MediaEncodingProfile const& profile);
public IAsyncOperation<PrepareTranscodeResult> PrepareFileTranscodeAsync(IStorageFile source, IStorageFile destination, MediaEncodingProfile profile);
function prepareFileTranscodeAsync(source, destination, profile)
Public Function PrepareFileTranscodeAsync (source As IStorageFile, destination As IStorageFile, profile As MediaEncodingProfile) As IAsyncOperation(Of PrepareTranscodeResult)

参数

source
IStorageFile

源文件。

destination
IStorageFile

目标文件。

profile
MediaEncodingProfile

要用于操作的配置文件。

返回

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

适用于

另请参阅