NDClient 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
建立 PlayReady-ND 會話、與下載引擎和資料流程剖析器 (協調,例如 MPEG-2 demuxer) 、管理範例緩衝區,以及接聽媒體資料流程來源事件。
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
- 繼承
- 屬性
Windows 需求
裝置系列 |
Windows 10 (已於 10.0.10240.0 引進)
|
API contract |
Windows.Foundation.UniversalApiContract (已於 v1.0 引進)
|
建構函式
NDClient(INDDownloadEngine, INDStreamParser, INDMessenger) |
建立 NDClient 類別的新實例。 |
方法
Close() |
不論它是否處於註冊、鄰近偵測、授權擷取或播放狀態,都會關閉目前的播放會話。 |
LicenseFetchAsync(INDLicenseFetchDescriptor) |
在用戶端接收者與傳輸器之間執行授權擷取。 |
ReRegistrationAsync(INDCustomData) |
在用戶端接收者和傳輸器之間執行鄰近偵測和重新註冊。 |
StartAsync(Uri, UInt32, INDCustomData, INDLicenseFetchDescriptor) |
啟動用戶端接收者和傳輸器之間的註冊、鄰近偵測和授權擷取程式。 |
事件
ClosedCaptionDataReceived |
通知接聽程式已關閉標題擷取作業已完成。 |
LicenseFetchCompleted |
通知接聽程式授權擷取作業已完成。 |
ProximityDetectionCompleted |
通知接聽程式鄰近偵測作業已完成。 |
RegistrationCompleted |
通知接聽程式註冊作業已完成。 |
ReRegistrationNeeded |
通知接聽程式,應用程式應該藉由呼叫 ReRegistrationAsync 方法來開始重新註冊。 |