Feb 19, 2010 at 9:41 PM


I am messing with the code and it seems a value that is normaly part of the mediaelement is missing

I should be able to enter in

Player.LicenseAcquirer.LicenseServerUriOverride into the .cs page to specify the value, but it does not seem to be defined and so far all my attempts have failed.

Any input would be great.


Feb 17, 2011 at 3:34 PM

You actually need to get the LicenseAcquirer on the active media plugin, since the SMFPlayer class itself merely loads media plugins when playing content.

If all you want is to be able to set the override URI then you can use override the OnMediaPluginLoaded method in a sub-class of SMFPlayer:

protected override void OnMediaPluginLoaded()
    ActiveMediaPlugin.LicenseAcquirer.LicenseServerUriOverride = new Uri("");

If you don't want to sub-class SMFPlayer then the other option is to set it on your playlist item:

PlaylistItem item = new PlaylistItem();
item.LicenseAcquirer = new LicenseAcquirer
        LicenseServerUriOverride = new Uri("")