MediaTranscoder.PrepareMediaStreamSourceTranscodeAsync 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
异步初始化指定媒体源上的 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 对象。