KID肯定不能改,那个东西要和license server统一的. 更改头的话,你用的应该是download类 查到错误返回值是什么了吗? Return code Description 0x80041108 Invalid content header. 0x8004110B Unsupported content header version. 0xC004291F This method does not support Windows Media Rights Manager 1. 0xC0042911 The InputFile property must be set before calling this method. 0xC004291A The input file must be protected. 0xC004291E The object was not created with Server.CreateObject. 0xC0042905 The property has not been set.
对于动态修改头,微软的描述如下 The basic process for modifying a content header dynamically is as follows: 1.Determine the path and file name of the packaged file to modify. 2.Use the Download.GetDRMHeader method to obtain the current content header and modify it as needed. For example, to add new attributes. If you want to create a new content header and do not need the original one, you can skip this step.3.Sign the new header. 4.Generate the new header. 5.Add the new header to the packaged file by using the Download.Download or Download.DownloadEx method (the Download.DownloadEx method has additional options). 你可以用Download类看看,如果不行的话也没有办法了,以前没测过重新换URL打包的例子。
更改头的话,你用的应该是download类
查到错误返回值是什么了吗?
Return code Description
0x80041108 Invalid content header.
0x8004110B Unsupported content header version.
0xC004291F This method does not support Windows Media Rights Manager 1.
0xC0042911 The InputFile property must be set before calling this method.
0xC004291A The input file must be protected.
0xC004291E The object was not created with Server.CreateObject.
0xC0042905 The property has not been set.
The basic process for modifying a content header dynamically is as follows: 1.Determine the path and file name of the packaged file to modify.
2.Use the Download.GetDRMHeader method to obtain the current content header and modify it as needed. For example, to add new attributes.
If you want to create a new content header and do not need the original one, you can skip this step.3.Sign the new header.
4.Generate the new header.
5.Add the new header to the packaged file by using the Download.Download or Download.DownloadEx method (the Download.DownloadEx method has additional options). 你可以用Download类看看,如果不行的话也没有办法了,以前没测过重新换URL打包的例子。
试试看吧,估计可能不行,否则一个音乐厂商可以直接使用另一个音乐厂商的drm文件了.
这个里面有关于DRM SDK详细的文档解答这里有详细的研究和文档说明