NDClient.StartAsync 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
啟動用戶端接收者與傳輸器之間的註冊、鄰近偵測和授權擷取程式。
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)
參數
- startAsyncOptions
-
UInt32
unsigned int
uint32_t
非同步啟動選項。 如需這些選項的詳細描述,請參閱 NDStartAsyncOptions 列舉。
- registrationCustomData
- INDCustomData
用於向傳送器註冊的自訂資料類型識別碼。
- licenseFetchDescriptor
- INDLicenseFetchDescriptor
用於授權擷取的描述項。
傳回
非同步啟動呼叫的結果。
- 屬性
備註
這個方法會設定具有傳送器的 PlayReady-ND 會話,並在下載引擎建立會話後立即開始串流內容。
此方法也會透過引發適當的ClosedCaptionDataReceived、LicenseFetchCompleted、ProximityDetectionCompleted、RegistrationCompleted和ReRegistrationNeeded事件,通知接聽程式已完成每個工作。