Output Protection Levels for Playback
You can specify protection levels to restrict how protected Windows Media files are played for the following types of output:
- Compressed digital audio
- Uncompressed digital audio
- Compressed digital video
- Uncompressed digital video
- Analog video
In addition, you can specify output protection levels when copying content.
For each type of output, you can require a minimum level of protection. One or more content-protection technologies are associated with each protection level. The media player enforces the definitions of these levels so they can be updated and expanded to accommodate new and evolving technologies without having to redefine the rights specified in a license. You can also explicitly allow or disallow certain content-protection technologies.
Currently, the following content-protection technologies are supported:
- High-bandwidth Digital Content Protection with secure signaling.
- Secure Audio Path.
- Windows Media DRM 10 for Network Devices.
- Copy Generation Management System.
- Macrovision Analog Content Protection.
- Windows Media Portable Device DRM v1.
- Windows Media DRM 10 for Portable Devices.
For information about current output protection levels, see the document WMRM SDK Compliance Rules that accompanied your license agreement from Microsoft.
Example Code
' Set playback and copy restrictions.
Dim RestrictObj ' WMRMRestrictions object
Dim PlayRestrictions ' Playback restrictions
Dim CopyRestrictions ' Copy restrictions
Set RestrictObj = Server.CreateObject("WMRMObjs.WMRMRestrictions")
' Set output protection levels for playback.
Call RestrictObj.AddRestriction(1, 300) ' Uncompressed digital video
Call RestrictObj.AddRestriction(2, 500) ' Compressed digital video
Call RestrictObj.AddRestriction(3, 200) ' Analog video
Call RestrictObj.AddRestriction(4, 200) ' Compressed digital audio
Call RestrictObj.AddRestriction(5, 200) ' Uncompressed digital audio
' Add an extended technology for playing analog video.
Call RestrictObj.AddExtension("{C3FD11C6-F8B7-4d20-B008-1DB17D61F2DA}", 1)
' Get the playback restrictions string.
PlayRestrictions = RestrictObj.GetRestrictions
' Set output protection levels for copying.
Set RestrictObj = Nothing
Set RestrictObj = Server.CreateObject("WMRMObjs.WMRMRestrictions")
Call RestrictObj.AddRestriction(6, 400) ' Copied output.
' Get the copy restrictions string.
CopyRestrictions = RestrictObj.GetRestrictions
' Set the restrictions into the WMRMRights object.
RightsObj.PlayRestrictions = PlayRestrictions
RightsObj.CopyRestrictions = CopyRestrictions
See Also