INDStreamParserNotifier.OnSampleParsed 方法

定义

当流分析程序分析媒体流中的样本时调用。

public:
 void OnSampleParsed(unsigned int streamID, NDMediaStreamType streamType, MediaStreamSample ^ streamSample, long long pts, NDClosedCaptionFormat ccFormat, Platform::Array <byte> ^ ccDataBytes);
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

表示时间戳,指示何时播放示例。

ccFormat
NDClosedCaptionFormat

关闭描述文字格式。 此值可以是 ATSCSCTE20Unknown

ccDataBytes

Byte[]

byte[]

包含闭合描述文字数据的数组。

属性

适用于