PlayReadyLicenseSession PlayReadyLicenseSession PlayReadyLicenseSession PlayReadyLicenseSession PlayReadyLicenseSession Class

Definition

Creates a media session and binds license acquisition to that media session.

public : sealed class PlayReadyLicenseSession : IPlayReadyLicenseSession, IPlayReadyLicenseSession2
struct winrt::Windows::Media::Protection::PlayReady::PlayReadyLicenseSession : IPlayReadyLicenseSession, IPlayReadyLicenseSession2
public sealed class PlayReadyLicenseSession : IPlayReadyLicenseSession, IPlayReadyLicenseSession2
Public NotInheritable Class PlayReadyLicenseSession Implements IPlayReadyLicenseSession, IPlayReadyLicenseSession2
var playReadyLicenseSession = new playReadyLicenseSession(configuration);
Attributes

Windows 10 requirements

Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

You must maintain the PlayReadyLicenseSession instance until playback has completed. If the app fails to do this, the garbage collector may, at its discretion, release the object. This can cause playback to fail.

Constructors

PlayReadyLicenseSession(IPropertySet) PlayReadyLicenseSession(IPropertySet) PlayReadyLicenseSession(IPropertySet) PlayReadyLicenseSession(IPropertySet) PlayReadyLicenseSession(IPropertySet)

Initializes a new instance of the PlayReadyLicenseSession class.

Methods

ConfigureMediaProtectionManager(MediaProtectionManager) ConfigureMediaProtectionManager(MediaProtectionManager) ConfigureMediaProtectionManager(MediaProtectionManager) ConfigureMediaProtectionManager(MediaProtectionManager) ConfigureMediaProtectionManager(MediaProtectionManager)

Updates the media protection manger with the appropriate settings so the media foundation can be used for playback.

CreateLAServiceRequest() CreateLAServiceRequest() CreateLAServiceRequest() CreateLAServiceRequest() CreateLAServiceRequest()

Creates a license acquisition service request whose license will be tied to the media session.

CreateLicenseIterable(PlayReadyContentHeader, Boolean) CreateLicenseIterable(PlayReadyContentHeader, Boolean) CreateLicenseIterable(PlayReadyContentHeader, Boolean) CreateLicenseIterable(PlayReadyContentHeader, Boolean) CreateLicenseIterable(PlayReadyContentHeader, Boolean)

Creates a PlayReadyLicense class iterator that supports in-memory-only PlayReady licenses in addition to persisted licenses.

See also