MediaElement.LicenseAcquirer Property
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)
Property Value
Type: System.Windows.Media.LicenseAcquirerThe LicenseAcquirer associated with the MediaElement. The default is null.
| 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 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.
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.