MSDN Library
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

MediaElement.LicenseAcquirer Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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.


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.


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.


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

© 2016 Microsoft