共用方式為


PlayReadyLicenseSession 類別

定義

建立媒體會話,並將授權取得系結至該媒體會話。

public ref class PlayReadyLicenseSession sealed : IPlayReadyLicenseSession
public ref class PlayReadyLicenseSession sealed : IPlayReadyLicenseSession2
/// [Windows.Foundation.Metadata.Activatable(Windows.Media.Protection.PlayReady.IPlayReadyLicenseSessionFactory, 65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
class PlayReadyLicenseSession final : IPlayReadyLicenseSession
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.Activatable(Windows.Media.Protection.PlayReady.IPlayReadyLicenseSessionFactory, 65536, "Windows.Foundation.UniversalApiContract")]
class PlayReadyLicenseSession final : IPlayReadyLicenseSession
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.Activatable(Windows.Media.Protection.PlayReady.IPlayReadyLicenseSessionFactory, 65536, "Windows.Foundation.UniversalApiContract")]
class PlayReadyLicenseSession final : IPlayReadyLicenseSession2
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Media.Protection.PlayReady.IPlayReadyLicenseSessionFactory), 65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public sealed class PlayReadyLicenseSession : IPlayReadyLicenseSession
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Media.Protection.PlayReady.IPlayReadyLicenseSessionFactory), 65536, "Windows.Foundation.UniversalApiContract")]
public sealed class PlayReadyLicenseSession : IPlayReadyLicenseSession
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Media.Protection.PlayReady.IPlayReadyLicenseSessionFactory), 65536, "Windows.Foundation.UniversalApiContract")]
public sealed class PlayReadyLicenseSession : IPlayReadyLicenseSession2
function PlayReadyLicenseSession(configuration)
Public NotInheritable Class PlayReadyLicenseSession
Implements IPlayReadyLicenseSession
Public NotInheritable Class PlayReadyLicenseSession
Implements IPlayReadyLicenseSession2
繼承
Object Platform::Object IInspectable PlayReadyLicenseSession
屬性
實作

Windows 需求

裝置系列
Windows 10 (已於 10.0.10240.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v1.0 引進)

備註

您必須維護 PlayReadyLicenseSession 實例,直到播放完成為止。 如果應用程式無法執行此動作,垃圾收集行程可能會自行釋放物件。 這可能會導致播放失敗。

版本歷程記錄

Windows 版本 SDK 版本 已新增值
1703 15063 CreateLicenseIterable

建構函式

PlayReadyLicenseSession(IPropertySet)

初始化 PlayReadyLicenseSession 類別的新實例。

方法

ConfigureMediaProtectionManager(MediaProtectionManager)

更新具有適當設定的媒體保護管理員,以便媒體基礎可用於播放。

CreateLAServiceRequest()

建立授權取得服務要求,其授權將會系結至媒體會話。

CreateLicenseIterable(PlayReadyContentHeader, Boolean)

建立 PlayReadyLicense 類別反覆運算器,除了保存的授權之外,還支援僅記憶體內 PlayReady 授權。

適用於

另請參閱