ellipse
Guest
|
Posted:
Wed Oct 19, 2005 8:30 am Post subject:
how to play a file encrypted drm v1 without displaying licen |
|
|
I encrypted a wma file with an drm version 1 encrypting application that I
made.
I got an license with an sample audioplayer(applied to drm) in windows media
format sdk, but the audioplayer display 'licensing Web Page' when licensing.
Can I play encrypted wma file without displaying the page?
When I made the encrypting application, I have followed the instructions
described on WMFSDK documents as follow:
1.Link the WMStubDRM.lib file to your project and, if necessary, unlink
wmvcore.lib.
2.Call the WMCreateWriter function to create the writer. The first argument
is reserved and must be set to NULL.
3.Set a profile for the writer to use by calling IWMWriter::SetProfile or
IWMWriter::SetProfileByID. You must set a profile in the writer before
setting any DRM attributes. DRM is supported only for profiles that use the
Windows Media Audio or Windows Media Video codecs.
4.Using the IWMHeaderInfo::SetAttribute method, set the following DRM
properties. The Use_DRM property instructs the DRM components to protect the
content using DRM version 1. The DRM_Flags property specifies the rights to
be included in the local license that will be created for the content. The
DRM_LEVEL value is also stored in the license; it specifies the minimum level
required to access the content. 150 is the recommended level for DRM version
1 content.
any help is welcome.
|
|