Share via


NDStreamParserNotifier.OnSampleParsed Method

Definition

Called when the stream parser parses a sample from the media stream.

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())

Parameters

streamID
UInt32

unsigned int

uint32_t

The identifier for the media stream that is being parsed.

streamType
NDMediaStreamType

The type of the media stream. This value can be Audio or Video.

streamSample
MediaStreamSample

The array of stream samples.

pts
Int64

long long

long

The presentation timestamp that indicates when to play the sample, in milliseconds. This value is relative to previous samples in the presentation. For example, if a given sample has a presentation time stamp of 1000 and some later sample has a presentation time stamp of 2000, the later sample occurs one second (1000ms) after the given sample.

ccFormat
NDClosedCaptionFormat

The closed caption format. This value can be ATSC, SCTE20, or Unknown.

ccDataBytes

Byte[]

byte[]

An array that contains the closed caption data.

Implements

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[])
Attributes

Applies to