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.
Assembly: System.Windows (in System.Windows.dll)
Property Value
Type: System.Windows.Media.LicenseAcquirerThe LicenseAcquirer associated with the MediaElement. The default is Nothing.
| Exception | Condition |
|---|---|
| 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.