共用方式為


NDClient.StartAsync 方法

定義

啟動用戶端接收者與傳輸器之間的註冊、鄰近偵測和授權擷取程式。

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)

參數

contentUrl
Uri Uri

串流內容的 URL。

startAsyncOptions
UInt32

unsigned int

uint32_t

非同步啟動選項。 如需這些選項的詳細描述,請參閱 NDStartAsyncOptions 列舉。

registrationCustomData
INDCustomData

用於向傳送器註冊的自訂資料類型識別碼。

licenseFetchDescriptor
INDLicenseFetchDescriptor

用於授權擷取的描述項。

傳回

非同步啟動呼叫的結果。

屬性

備註

這個方法會設定具有傳送器的 PlayReady-ND 會話,並在下載引擎建立會話後立即開始串流內容。

此方法也會透過引發適當的ClosedCaptionDataReceivedLicenseFetchCompletedProximityDetectionCompleted、RegistrationCompletedReRegistrationNeeded事件,通知接聽程式已完成每個工作。

適用於

另請參閱