开发者

nonsilent delivery of a WMRM DRM license via ASP.NET MVC?

Is it possible to do nonsilent delivery of a WMRM DRM license via ASP.NET (ideally MVC)?

I have silent delivery working fine.

All the samples from the SDK (WMRM10.1) are in asp - of which I have no experience (I went from PHP开发者_开发百科 to ASP.NET).

It looks like I need to implement the actual issuance in vbscript or JavaScript included with the html. Is this right?

Does anyone have an example of doing nonsilent license issuance in JavaScript/ASP.NET?


I eventually got this working using a view very similar to this:

<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<LicenceViewModel>" %>
<html>
<head>
<script language="JavaScript" type="text/javascript">
function Storev71License()
{
   LicenseObj.StoreLicense('<%= Model.Licence %>');
}
</script>
</head>
<body onload="Storev71License()">
<object classid="clsid:A9FC132B-096D-460B-B7D5-1DB0FAE0C062" height="0" id="LicenseObj" width="0">
  <embed mayscript type="application/x-drm-v2" hidden="true">
</object>
<p>You have received a license for this movie. Click Play.</p>
</body>
</html>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜