Sets the transmission mode for obtaining certificates for protected media files

Source: Internet
Author: User

Recently, I was very depressed by a license transfer method. I have been wondering where to set the transfer method that may affect the license (Note: there are two license obtaining methods: silent and nonsilent ), at first, according to my thoughts, I thought that I could set the transmission method for the customer to obtain the license when encrypting the media file, but I searched for the right, protect, in MS DRM, the key and header objects are not found to set the transmission mode. They are also searched online, and no relevant information is found. At this time, they are very depressed, I suddenly found it on the MS site. Original. The transfer method for obtaining the license is not affected by the content provider. Due to Media Player's outbound and customer security considerations, the following message is displayed when the protected content is played:

"You must have a license to play the selected content. You must obtain a license.You must access the webpage of the content provider. The provider may require you to register or payYou have a license.
Address:
Http: // localhost/demo. aspx
The content contained in the webpage may cause harm to your computer. It must be confirmed before continuing the operationIt is important to believe that the source of such content is reliable.
Are you sure you want to open the web page to obtain a license ?"

In this case, select "OK" (that is, to obtain the license). If the client is set to "silent", a window will not pop up, but if the client is set to "non-silent, A window will be provided. The content of the window can be provided by the solution license provider.

As for how to remove the above prompt box (that is, do not prompt), I have not found a method yet, but when I play the silent demonstration of China-DRM, the prompt box does not appear in the media file. Weird ....

Set the transfer method for obtaining a license:
Open the player (Windows Media Player) --> Tools --> options --> privacy --> automatically obtain the license for protected content. If you select this option, the license is obtained silently.

The license issuing service provider must handle the two situations accordingly.

// Obtain the customer's license transfer method:
String silent = request. Form ["nonsilent"];
// If the client sets silent transmission, the value is null.
If (silent! = NULL) // non-silent Transmission
{
// Other processing can be performed here, And the Client ActiveX should be called here
/**//*
<Script language = "JavaScript">
Function storev2license (HR)
{
Netobj. storelicense ("<% = license %> ");
}
</SCRIPT>
<Body onload = "storev2license ()">
<Object classid = CLSID: A9FC132B-096D-460B-B7D5-1DB0FAE0C062 Height = 0 id = netobj
Width = 0>
<Embed mayscript type = "application/x-drm-v2" hidden = "true">
</Object>
*/
}
Else
{
Response. Write (license); // The certificate can be output directly here
}
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.