smfplayer with drm/playready

Jan 25, 2011 at 6:20 PM

Hi all,

someone has an example implementation of smfplayer with drm / PlayReady?

I haven't found no documentation or practical example of implementation...

thanks!

alguem possui um exemplo de implementação do smfplayer com drm/playready?
Jan 25, 2011 at 6:44 PM

You will need to set the LicenseAcquirer property on each PlaylistItem object. This can be a little annoying if the information doesn't change per item. 

Here's a psuedo breakdown of what I've done (in my real project I used MVVM to bind the Playlist)

 var item = new PlaylistItem
                           {
                               LicenseAcquirer =
                                   new LicenseAcquirer
                                       {
                                           LicenseServerUriOverride = new Uri("http://yourcustomurl.com/playready/rightsmanager.asmx"),
                                           ChallengeCustomData = "UserId=22"
                                       },
                               MediaSource = new Uri("http://hellothere.com/video.ism"),
                               DeliveryMethod = DeliveryMethods.AdaptiveStreaming
                           };
 player.Playlist.Add(item);

Jan 26, 2011 at 3:19 PM
Edited Jan 26, 2011 at 3:29 PM

Hi darthobiwan,

Thanks for your reply, but I implemented the example, but gives no errors using a fake url. The video always plays independent of licenseAcquirer.
Am I doing something wrong?
Thanks.


            var item = new PlaylistItem {
                LicenseAcquirer = new LicenseAcquirer
                                       {
                                           LicenseServerUriOverride = new Uri("http://yourcustomurl.com/playready/rightsmanager.asmx"),
                                           ChallengeCustomData = "UserId=22"
                                       },
                MediaSource = new Uri("http://10.200.5.189:8080/PlayerProject.Web/LiveSmoothStream.isml/manifest"),
                 DeliveryMethod = DeliveryMethods.AdaptiveStreaming
            };
            this.smfPlayer.Playlist.Add(item);

 

sorry my poor english...

Feb 17, 2011 at 3:28 PM

Is your content DRM protected? The LicenseAcquirer will only be used if the content is DRM protected (i.e. it includes the right headers, as far as I know).

Dec 7, 2011 at 12:51 AM

Have you guys figure out a solution for this. I am having same issues as marciogmunhoz. My content is DRM protected. 

Dec 7, 2011 at 9:05 AM

Does it work if you don't include the LicenseServerUriOverride?

Dec 22, 2011 at 11:08 AM

If you always get playback, and you have a file that is actually PlayReady protected, its most likely because your PlayReady server is set up to just give out licenses when players ask. I wouldn't recommend a setup like that.

Dec 22, 2011 at 12:17 PM

Another possible explanation when debugging is that you already acquired a valid license during another debug session that is still valid.

There are some tools to check that, or you can just delete your PlayReady license store to be sure.