NDStreamParserNotifier
NDStreamParserNotifier
NDStreamParserNotifier
NDStreamParserNotifier
Class
Definition
Contains methods that a stream parser plug-in uses to send notifications to a PlayReady-ND client.
public : sealed class NDStreamParserNotifier : INDStreamParserNotifierpublic sealed class NDStreamParserNotifier : INDStreamParserNotifierPublic NotInheritable Class NDStreamParserNotifier Implements INDStreamParserNotifier// You can use this class in JavaScript.
- Attributes
| Device family |
Windows 10 (introduced v10.0.10240.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v1)
|
Constructors
NDStreamParserNotifier() NDStreamParserNotifier() NDStreamParserNotifier() NDStreamParserNotifier()
Creates a new instance of the NDStreamParserNotifier class.
public : NDStreamParserNotifier()public NDStreamParserNotifier()Public Sub New()// You can use this method in JavaScript.
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.
- 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 data for the setup decryptor.
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.
- 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.
- 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.
- streamID
- unsigned int UInt32 UInt32 UInt32
The identifier for the media stream that is being parsed.
The type of the media stream. This value can be Audio or Video.
The array of stream samples.
- pts
- long Int64 Int64 Int64
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.
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.