Delen via


NDClient Class

Definition

Creates PlayReady-ND sessions, coordinates with the download engine and the stream parser (for example, an MPEG-2 demuxer), manages the sample buffer, and listens to media stream source events.

public ref class NDClient sealed
/// [Windows.Foundation.Metadata.Activatable(Windows.Media.Protection.PlayReady.INDClientFactory, 65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
class NDClient final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.Activatable(Windows.Media.Protection.PlayReady.INDClientFactory, 65536, "Windows.Foundation.UniversalApiContract")]
class NDClient final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.Activatable(Windows.Media.Protection.PlayReady.INDClientFactory, 65536, "Windows.Foundation.UniversalApiContract")]
/// [Windows.Foundation.Metadata.Deprecated("NDClient is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 196608, "Windows.Foundation.UniversalApiContract")]
class NDClient final
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Media.Protection.PlayReady.INDClientFactory), 65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public sealed class NDClient
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Media.Protection.PlayReady.INDClientFactory), 65536, "Windows.Foundation.UniversalApiContract")]
public sealed class NDClient
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Media.Protection.PlayReady.INDClientFactory), 65536, "Windows.Foundation.UniversalApiContract")]
[Windows.Foundation.Metadata.Deprecated("NDClient is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 196608, "Windows.Foundation.UniversalApiContract")]
public sealed class NDClient
function NDClient(downloadEngine, streamParser, pMessenger)
Public NotInheritable Class NDClient
Inheritance
Object Platform::Object IInspectable NDClient
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Constructors

NDClient(INDDownloadEngine, INDStreamParser, INDMessenger)

Creates a new instance of the NDClient class.

Methods

Close()

Closes the current playback session regardless of whether it is in the registration, proximity detection, license fetch, or play state.

LicenseFetchAsync(INDLicenseFetchDescriptor)

Performs a license fetch between a client receiver and a transmitter.

ReRegistrationAsync(INDCustomData)

Performs a proximity detection and reregistration between a client receiver and a transmitter.

StartAsync(Uri, UInt32, INDCustomData, INDLicenseFetchDescriptor)

Starts the registration, proximity detection, and license fetch procedures between a client receiver and a transmitter.

Events

ClosedCaptionDataReceived

Notifies listeners that a closed caption acquisition operation has completed.

LicenseFetchCompleted

Notifies listeners that a license fetch operation has completed.

ProximityDetectionCompleted

Notifies listeners that a proximity detection operation has completed.

RegistrationCompleted

Notifies listeners that a registration operation has completed.

ReRegistrationNeeded

Notifies listeners that the app should start re-registration by calling the ReRegistrationAsync method.

Applies to