MediaElement.LicenseAcquirer Property

July 28, 2014

Gets or sets the LicenseAcquirer associated with the MediaElement. The LicenseAcquirer handles acquiring licenses for DRM encrypted content.

Namespace:  System.Windows.Controls
Assembly:  System.Windows (in System.Windows.dll)

public LicenseAcquirer LicenseAcquirer { get; set; }

Property Value

Type: System.Windows.Media.LicenseAcquirer
The LicenseAcquirer associated with the MediaElement. The default is null.

ExceptionCondition
ArgumentNullException

The LicenseAcquirer is null.

The main scenario for using this property is if you are serving DRM-protected content and wish to override the LicenseAcquirer to provide custom license acquiring behaviors such as adding business data or authentication tokens to the license request. See Digital Rights Management (DRM) for Windows Phone 8 for more information.

A LicenseAcquirer can only be associated with one MediaElement at any given time. Attempting to set a LicenseAcquirer already associated with one MediaElement on another MediaElement will throw an error.

Capabilities

If you use this API in your app, you must specify the following capabilities in the app manifest. Otherwise, your app might not work correctly or it might exit unexpectedly.

ID_CAP_NETWORKING

Windows Phone 8, Windows Phone OS 7.1

For more info, see App capabilities and hardware requirements for Windows Phone 8.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2014 Microsoft