Bagikan melalui


NDClient.StartAsync Metode

Definisi

Memulai pendaftaran, deteksi kedekatan, dan prosedur pengambilan lisensi antara penerima klien dan pemancar.

public:
 virtual IAsyncOperation<INDStartResult ^> ^ StartAsync(Uri ^ contentUrl, unsigned int startAsyncOptions, INDCustomData ^ registrationCustomData, INDLicenseFetchDescriptor ^ licenseFetchDescriptor) = StartAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<INDStartResult> StartAsync(Uri const& contentUrl, uint32_t const& startAsyncOptions, INDCustomData const& registrationCustomData, INDLicenseFetchDescriptor const& licenseFetchDescriptor);
/// [Windows.Foundation.Metadata.RemoteAsync]
/// [Windows.Foundation.Metadata.Deprecated("INDClient is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 196608, "Windows.Foundation.UniversalApiContract")]
IAsyncOperation<INDStartResult> StartAsync(Uri const& contentUrl, uint32_t const& startAsyncOptions, INDCustomData const& registrationCustomData, INDLicenseFetchDescriptor const& licenseFetchDescriptor);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<INDStartResult> StartAsync(System.Uri contentUrl, uint startAsyncOptions, INDCustomData registrationCustomData, INDLicenseFetchDescriptor licenseFetchDescriptor);
[Windows.Foundation.Metadata.RemoteAsync]
[Windows.Foundation.Metadata.Deprecated("INDClient is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 196608, "Windows.Foundation.UniversalApiContract")]
public IAsyncOperation<INDStartResult> StartAsync(System.Uri contentUrl, uint startAsyncOptions, INDCustomData registrationCustomData, INDLicenseFetchDescriptor licenseFetchDescriptor);
function startAsync(contentUrl, startAsyncOptions, registrationCustomData, licenseFetchDescriptor)
Public Function StartAsync (contentUrl As Uri, startAsyncOptions As UInteger, registrationCustomData As INDCustomData, licenseFetchDescriptor As INDLicenseFetchDescriptor) As IAsyncOperation(Of INDStartResult)

Parameter

contentUrl
Uri Uri

URL konten yang dialirkan.

startAsyncOptions
UInt32

unsigned int

uint32_t

Opsi mulai asinkron. Lihat enumerasi NDStartAsyncOptions untuk deskripsi terperinci tentang opsi ini.

registrationCustomData
INDCustomData

Pengidentifikasi jenis data kustom yang digunakan untuk pendaftaran dengan pemancar.

licenseFetchDescriptor
INDLicenseFetchDescriptor

Deskriptor yang digunakan untuk pengambilan lisensi.

Mengembalikan

Hasil dari panggilan mulai asinkron.

Atribut

Keterangan

Metode ini menyiapkan sesi PlayReady-ND dengan pemancar dan memberi tahu mesin unduh untuk memulai streaming konten segera setelah sesi dibuat.

Metode ini juga memberi tahu pendengar bahwa setiap tugas telah selesai dengan mengaktifkan peristiwa ClosedCaptionDataReceived, LicenseFetchCompleted, ProximityDetectionCompleted, RegistrationCompleted, dan ReRegistrationNeeded yang sesuai.

Berlaku untuk

Lihat juga