INDStreamParserNotifier INDStreamParserNotifier INDStreamParserNotifier INDStreamParserNotifier Interface

Definition

Contains methods that a stream parser plug-in uses to send notifications to a PlayReady-ND client.

public : interface INDStreamParserNotifierpublic interface INDStreamParserNotifierPublic Interface INDStreamParserNotifier// You can use this interface in JavaScript.
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

The stream parser plug-in is responsible for instantiating this interface and using its methods to send notifications.

Methods

OnBeginSetupDecryptor(IMediaStreamDescriptor, Guid, Byte[]) OnBeginSetupDecryptor(IMediaStreamDescriptor, Guid, Byte[]) OnBeginSetupDecryptor(IMediaStreamDescriptor, Guid, Byte[]) OnBeginSetupDecryptor(IMediaStreamDescriptor, Guid, Byte[])

Called by the stream parser when it requests a setup decryptor.

public : void OnBeginSetupDecryptor(IMediaStreamDescriptor descriptor, PlatForm::Guid keyID, Byte[] proBytes)public void OnBeginSetupDecryptor(IMediaStreamDescriptor descriptor, Guid keyID, Byte[] proBytes)Public Function OnBeginSetupDecryptor(descriptor As IMediaStreamDescriptor, keyID As Guid, proBytes As Byte[]) As void// You can use this method in JavaScript.
Parameters
descriptor
IMediaStreamDescriptor IMediaStreamDescriptor IMediaStreamDescriptor IMediaStreamDescriptor

The descriptor of the media stream being decrypted.

keyID
PlatForm::Guid Guid Guid Guid

The key identifier used for decryption.

proBytes
Byte[] Byte[] Byte[] Byte[]

The byte array of a PlayReadyObject for creating the decryptor. For MPEG2 TS, the PlayReadyObject is in the entitlement control messages (ECM) packet.

OnContentIDReceived(INDLicenseFetchDescriptor) OnContentIDReceived(INDLicenseFetchDescriptor) OnContentIDReceived(INDLicenseFetchDescriptor) OnContentIDReceived(INDLicenseFetchDescriptor)

Called by a stream parser when it receives the content identifier.

public : void OnContentIDReceived(INDLicenseFetchDescriptor licenseFetchDescriptor)public void OnContentIDReceived(INDLicenseFetchDescriptor licenseFetchDescriptor)Public Function OnContentIDReceived(licenseFetchDescriptor As INDLicenseFetchDescriptor) As void// You can use this method in JavaScript.
Parameters
licenseFetchDescriptor
INDLicenseFetchDescriptor INDLicenseFetchDescriptor INDLicenseFetchDescriptor INDLicenseFetchDescriptor

The license fetch descriptor containing the content identifier.

OnMediaStreamDescriptorCreated(IVector, IVector) OnMediaStreamDescriptorCreated(IVector, IVector) OnMediaStreamDescriptorCreated(IVector, IVector) OnMediaStreamDescriptorCreated(IVector, IVector)

Called by the stream parser when the media stream descriptor is created.

public : void OnMediaStreamDescriptorCreated(IVector<AudioStreamDescriptor> audioStreamDescriptors, IVector<VideoStreamDescriptor> videoStreamDescriptors)public void OnMediaStreamDescriptorCreated(IList<AudioStreamDescriptor> audioStreamDescriptors, IList<VideoStreamDescriptor> videoStreamDescriptors)Public Function OnMediaStreamDescriptorCreated(audioStreamDescriptors As IList<AudioStreamDescriptor>, videoStreamDescriptors As IList<VideoStreamDescriptor>) As void// You can use this method in JavaScript.
Parameters
audioStreamDescriptors
IVector<AudioStreamDescriptor> IList<AudioStreamDescriptor> IList<AudioStreamDescriptor> IList<AudioStreamDescriptor>

An array of audio stream descriptors that are part of the media stream descriptor.

videoStreamDescriptors
IVector<VideoStreamDescriptor> IList<VideoStreamDescriptor> IList<VideoStreamDescriptor> IList<VideoStreamDescriptor>

An array of video stream descriptors that are part of the media stream descriptor.

OnSampleParsed(UInt32, NDMediaStreamType, MediaStreamSample, Int64, NDClosedCaptionFormat, Byte[]) OnSampleParsed(UInt32, NDMediaStreamType, MediaStreamSample, Int64, NDClosedCaptionFormat, Byte[]) OnSampleParsed(UInt32, NDMediaStreamType, MediaStreamSample, Int64, NDClosedCaptionFormat, Byte[]) OnSampleParsed(UInt32, NDMediaStreamType, MediaStreamSample, Int64, NDClosedCaptionFormat, Byte[])

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

public : void OnSampleParsed(unsigned int streamID, NDMediaStreamType streamType, MediaStreamSample streamSample, long pts, NDClosedCaptionFormat ccFormat, Byte[] ccDataBytes)public void OnSampleParsed(UInt32 streamID, NDMediaStreamType streamType, MediaStreamSample streamSample, Int64 pts, NDClosedCaptionFormat ccFormat, Byte[] ccDataBytes)Public Function OnSampleParsed(streamID As UInt32, streamType As NDMediaStreamType, streamSample As MediaStreamSample, pts As Int64, ccFormat As NDClosedCaptionFormat, ccDataBytes As Byte[]) As void// You can use this method in JavaScript.
Parameters
streamID
unsigned int UInt32 UInt32 UInt32

The identifier for the media stream that is being parsed.

streamType
NDMediaStreamType NDMediaStreamType NDMediaStreamType NDMediaStreamType

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

streamSample
MediaStreamSample MediaStreamSample MediaStreamSample MediaStreamSample

The array of stream samples.

pts
long Int64 Int64 Int64

The presentation timestamp that indicates when to play the sample.

ccFormat
NDClosedCaptionFormat NDClosedCaptionFormat NDClosedCaptionFormat NDClosedCaptionFormat

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

ccDataBytes
Byte[] Byte[] Byte[] Byte[]

An array that contains the closed caption data.