How set LicenseAcquirer on MediaElement in SMFv2

Jul 15, 2010 at 10:53 AM

What is the suggested method to set LicenseAcquirer class with SMFv2 in order to reproduce videos protected with playready and set an override of LicenseServerUrl or CustomData using a custom LicenseAcquirer ?


Jul 15, 2010 at 4:26 PM

The LicenseAcquirer property can be used as you would do for a standard MediaElement.

However, it can only be accessed through the ActiveMediaPlugin property of the player, which is a protected property.

So you need to subclass the SMFPlayer class, and then use this subclass as the player in the XAML.


Example Code:

public class SMFLAPlayer : SMFPlayer


        protected override void OnMediaPluginLoaded()



            var licenseAcquirer = ActiveMediaPlugin.LicenseAcquirer;






        <smf_media:PlaylistItem MediaSource=""/>