共用方式為


NDStreamParserNotifier.OnSampleParsed 方法

定義

當資料流程剖析器從媒體資料流程剖析樣本時呼叫。

public:
 virtual void OnSampleParsed(unsigned int streamID, NDMediaStreamType streamType, MediaStreamSample ^ streamSample, long long pts, NDClosedCaptionFormat ccFormat, Platform::Array <byte> ^ ccDataBytes) = OnSampleParsed;
void OnSampleParsed(uint32_t const& streamID, NDMediaStreamType const& streamType, MediaStreamSample const& streamSample, long const& pts, NDClosedCaptionFormat const& ccFormat, winrt::array_view <byte> const& ccDataBytes);
/// [Windows.Foundation.Metadata.Deprecated("INDStreamParserNotifier is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 196608, "Windows.Foundation.UniversalApiContract")]
void OnSampleParsed(uint32_t const& streamID, NDMediaStreamType const& streamType, MediaStreamSample const& streamSample, long const& pts, NDClosedCaptionFormat const& ccFormat, winrt::array_view <byte> const& ccDataBytes);
public void OnSampleParsed(uint streamID, NDMediaStreamType streamType, MediaStreamSample streamSample, long pts, NDClosedCaptionFormat ccFormat, byte[] ccDataBytes);
[Windows.Foundation.Metadata.Deprecated("INDStreamParserNotifier is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 196608, "Windows.Foundation.UniversalApiContract")]
public void OnSampleParsed(uint streamID, NDMediaStreamType streamType, MediaStreamSample streamSample, long pts, NDClosedCaptionFormat ccFormat, byte[] ccDataBytes);
function onSampleParsed(streamID, streamType, streamSample, pts, ccFormat, ccDataBytes)
Public Sub OnSampleParsed (streamID As UInteger, streamType As NDMediaStreamType, streamSample As MediaStreamSample, pts As Long, ccFormat As NDClosedCaptionFormat, ccDataBytes As Byte())

參數

streamID
UInt32

unsigned int

uint32_t

正在剖析之媒體資料流程的識別碼。

streamType
NDMediaStreamType

媒體資料流程的類型。 此值可以是 音訊視訊

streamSample
MediaStreamSample

資料流程範例的陣列。

pts
Int64

long long

long

表示何時要播放範例的簡報時間戳記,以毫秒為單位。 此值相對於簡報中的先前範例。 例如,如果指定的樣本具有 1000 的簡報時間戳記,而某些稍後的範例具有 2000 的簡報時間戳記,則稍後的範例會在指定樣本之後 (1000 毫秒) 發生一秒。

ccFormat
NDClosedCaptionFormat

關閉標題格式。 此值可以是 ATSCSCTE20Unknown

ccDataBytes

Byte[]

byte[]

包含已關閉標題資料的陣列。

實作

M:Windows.Media.Protection.PlayReady.INDStreamParserNotifier.OnSampleParsed(System.UInt32,Windows.Media.Protection.PlayReady.NDMediaStreamType,Windows.Media.Core.MediaStreamSample,System.Int64,Windows.Media.Protection.PlayReady.NDClosedCaptionFormat,System.Byte[]) M:Windows.Media.Protection.PlayReady.INDStreamParserNotifier.OnSampleParsed(unsigned int,Windows.Media.Protection.PlayReady.NDMediaStreamType,Windows.Media.Core.MediaStreamSample,long long,Windows.Media.Protection.PlayReady.NDClosedCaptionFormat,byte[]) M:Windows.Media.Protection.PlayReady.INDStreamParserNotifier.OnSampleParsed(uint32_t,Windows.Media.Protection.PlayReady.NDMediaStreamType,Windows.Media.Core.MediaStreamSample,long,Windows.Media.Protection.PlayReady.NDClosedCaptionFormat,byte[])
屬性

適用於