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 许可证以及持久化许可证。

适用于

另请参阅