INDDownloadEngine
INDDownloadEngine
INDDownloadEngine
INDDownloadEngine
Interface
Definition
Provides the PlayReady-ND download engine used to stream protected media content from a transmitter.
public : interface INDDownloadEnginepublic interface INDDownloadEnginePublic Interface INDDownloadEngine// You can use this interface in JavaScript.
- Attributes
| Device family |
Windows 10 (introduced v10.0.10240.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v1)
|
Properties
BufferFullMaxThresholdInSamples BufferFullMaxThresholdInSamples BufferFullMaxThresholdInSamples BufferFullMaxThresholdInSamples
Gets the maximum threshold of the sample buffer.
public : unsigned int BufferFullMaxThresholdInSamples { get; }public uint BufferFullMaxThresholdInSamples { get; }Public ReadOnly Property BufferFullMaxThresholdInSamples As uint// You can use this property in JavaScript.
- Value
- unsigned int uint uint uint
The maximum number of samples that the download engine uses to determine whether the sample buffer is full.
Remarks
When the sample buffer contains more samples than this threshold, the download engine is notified to pause.
BufferFullMinThresholdInSamples BufferFullMinThresholdInSamples BufferFullMinThresholdInSamples BufferFullMinThresholdInSamples
Gets the minimum number of samples a sample buffer can hold before a download engine resumes downloading.
public : unsigned int BufferFullMinThresholdInSamples { get; }public uint BufferFullMinThresholdInSamples { get; }Public ReadOnly Property BufferFullMinThresholdInSamples As uint// You can use this property in JavaScript.
- Value
- unsigned int uint uint uint
The minimum number of samples that the download engine uses to determine whether to resume downloading.
Remarks
When the buffer holds a number of samples smaller than this, the download engine is notified to resume downloading.
CanSeek CanSeek CanSeek CanSeek
Gets whether the download engine supports seeking.
public : PlatForm::Boolean CanSeek { get; }public bool CanSeek { get; }Public ReadOnly Property CanSeek As bool// You can use this property in JavaScript.
- Value
- PlatForm::Boolean bool bool bool
true if the download engine supports seeking or false if it does not.
Notifier Notifier Notifier Notifier
Gets the download engine notifier that will provide notification of download stream events from the transmitter.
public : NDDownloadEngineNotifier Notifier { get; }public NDDownloadEngineNotifier Notifier { get; }Public ReadOnly Property Notifier As NDDownloadEngineNotifier// You can use this property in JavaScript.
- Value
- NDDownloadEngineNotifier NDDownloadEngineNotifier NDDownloadEngineNotifier NDDownloadEngineNotifier
A download engine notifier created from the INDDownloadEngineNotifier interface.
Methods
Close() Close() Close() Close()
Notifies the download engine to stop downloading and disconnect from the remote server.
public : void Close()public void Close()Public Function Close() As void// You can use this method in JavaScript.
Open(Uri, Byte[]) Open(Uri, Byte[]) Open(Uri, Byte[]) Open(Uri, Byte[])
Notifies the download engine to open the content specified by a URL.
public : void Open(Uri uri, Byte[] sessionIDBytes)public void Open(Uri uri, Byte[] sessionIDBytes)Public Function Open(uri As Uri, sessionIDBytes As Byte[]) As void// You can use this method in JavaScript.
- uri
- Uri Uri Uri Uri
The URI from which the download engine gets content.
- sessionIDBytes
- Byte[] Byte[] Byte[] Byte[]
The session identifier used to identify the session. The session identifier must be 16 bytes.
Pause() Pause() Pause() Pause()
Notifies the download engine to pause downloading.
public : void Pause()public void Pause()Public Function Pause() As void// You can use this method in JavaScript.
Resume() Resume() Resume() Resume()
Notifies the download engine to resume a paused download.
public : void Resume()public void Resume()Public Function Resume() As void// You can use this method in JavaScript.
Seek(TimeSpan) Seek(TimeSpan) Seek(TimeSpan) Seek(TimeSpan)
Notifies the download engine to go to a specified time position in the media stream.
public : void Seek(TimeSpan startPosition)public void Seek(TimeSpan startPosition)Public Function Seek(startPosition As TimeSpan) As void// You can use this method in JavaScript.
- startPosition
- TimeSpan TimeSpan TimeSpan TimeSpan
The position within the media stream to which to seek.