MediaStreamSample.CreateFromStreamAsync 方法

定义

public:
 static IAsyncOperation<MediaStreamSample ^> ^ CreateFromStreamAsync(IInputStream ^ stream, unsigned int count, TimeSpan timestamp);
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<MediaStreamSample> CreateFromStreamAsync(IInputStream const& stream, uint32_t const& count, TimeSpan const& timestamp);
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<MediaStreamSample> CreateFromStreamAsync(IInputStream stream, uint count, System.TimeSpan timestamp);
function createFromStreamAsync(stream, count, timestamp)
Public Shared Function CreateFromStreamAsync (stream As IInputStream, count As UInteger, timestamp As TimeSpan) As IAsyncOperation(Of MediaStreamSample)

参数

count
UInt32

unsigned int

uint32_t

样本中数据的长度。 这是将从 中读取的字节数。

timestamp
TimeSpan TimeSpan

MediaStreamSample 的呈现时间。

返回

此方法完成后,它将以 MediaStreamSample 的形式返回新文件。

属性

注解

对于某些格式, MediaStreamSample 的解码时间和呈现时间是不同的。 可以通过 DecodeTimestamp 属性访问解码时间。

适用于