Wednesday, February 10, 2010

NonSilent Windows DRM license delivery and duplicate web page requests

On the off chance that someone else may come across this issue.

If you are issuing windows DRM licenses via the embedded browser control in WIndows Media Player be aware that the first request the player will make will be with a user agent similar to
User-Agent: Windows-Media-DRM/11.0.5721.5145
If a license is not returned for this request a second request will be made using the Internet Explorer user agent.


This can matter if you are using cookies or session values which you are only persisting for a single subsequent request but WMP makes 2 requests and it's the second you want. (No comment on the number of hours I spent learning this the hard way.)

0 comments:

Post a Comment

I get a lot of comment spam :( - moderation may take a while.