Bagikan melalui


PlayReadyLicenseSession Kelas

Definisi

Membuat sesi media dan mengikat akuisisi lisensi ke sesi media tersebut.

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
Warisan
Object Platform::Object IInspectable PlayReadyLicenseSession
Atribut
Penerapan

Persyaratan Windows

Rangkaian perangkat
Windows 10 (diperkenalkan dalam 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (diperkenalkan dalam v1.0)

Keterangan

Anda harus mempertahankan instans PlayReadyLicenseSession hingga pemutaran selesai. Jika aplikasi gagal melakukan ini, pengumpul sampah dapat, atas kebijakannya, melepaskan objek . Ini dapat menyebabkan pemutaran gagal.

Riwayat versi

Versi Windows Versi SDK Nilai ditambahkan
1703 15063 CreateLicenseIterable

Konstruktor

PlayReadyLicenseSession(IPropertySet)

Menginisialisasi instans baru kelas PlayReadyLicenseSession .

Metode

ConfigureMediaProtectionManager(MediaProtectionManager)

Updates pengelola perlindungan media dengan pengaturan yang sesuai sehingga fondasi media dapat digunakan untuk pemutaran.

CreateLAServiceRequest()

Membuat permintaan layanan akuisisi lisensi yang lisensinya akan terkait dengan sesi media.

CreateLicenseIterable(PlayReadyContentHeader, Boolean)

Membuat iterator kelas PlayReadyLicense yang mendukung lisensi PlayReady khusus memori selain lisensi yang dipertahankan.

Berlaku untuk

Lihat juga