NDClient.StartAsync(Uri, UInt32, INDCustomData, INDLicenseFetchDescriptor) NDClient.StartAsync(Uri, UInt32, INDCustomData, INDLicenseFetchDescriptor) NDClient.StartAsync(Uri, UInt32, INDCustomData, INDLicenseFetchDescriptor) NDClient.StartAsync(Uri, UInt32, INDCustomData, INDLicenseFetchDescriptor) NDClient.StartAsync(Uri, UInt32, INDCustomData, INDLicenseFetchDescriptor) Method

Definition

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

public : IAsyncOperation<INDStartResult> StartAsync(Uri contentUrl, unsigned int startAsyncOptions, INDCustomData registrationCustomData, INDLicenseFetchDescriptor licenseFetchDescriptor)
IAsyncOperation<INDStartResult> StartAsync(Uri contentUrl, uint32_t startAsyncOptions, INDCustomData registrationCustomData, INDLicenseFetchDescriptor licenseFetchDescriptor) const;
public IAsyncOperation<INDStartResult> StartAsync(Uri contentUrl, UInt32 startAsyncOptions, INDCustomData registrationCustomData, INDLicenseFetchDescriptor licenseFetchDescriptor)
Public Function StartAsync(contentUrl As Uri, startAsyncOptions As UInt32, registrationCustomData As INDCustomData, licenseFetchDescriptor As INDLicenseFetchDescriptor) As IAsyncOperation(Of INDStartResult)
Windows.Media.Protection.PlayReady.NDClient.startAsync(contentUrl, startAsyncOptions, registrationCustomData, licenseFetchDescriptor).done( /* Your success and error handlers */ );

Parameters

contentUrl
Uri Uri Uri

The URL of the streamed content.

startAsyncOptions
UInt32 UInt32 UInt32

The asynchronous start options. See the NDStartAsyncOptions enumeration for a detailed description of these options.

registrationCustomData
INDCustomData INDCustomData INDCustomData

The custom data type identifier that is used for registration with the transmitter.

licenseFetchDescriptor
INDLicenseFetchDescriptor INDLicenseFetchDescriptor INDLicenseFetchDescriptor

The descriptor used for license fetching.

Returns

Remarks

This method sets up a PlayReady-ND session with a transmitter and notifies the download engine to begin streaming content as soon as it has established the session.

This method also notifies listeners that each task has completed by firing the appropriate ClosedCaptionDataReceived, LicenseFetchCompleted, ProximityDetectionCompleted, RegistrationCompleted, and ReRegistrationNeeded events.

See also