Requiring Secure Audio Path

banner art

Previous Next

Requiring Secure Audio Path

To require Secure Audio Path, you must specify an output protection level using the WMRMRestrictions.AddRestriction object for compressed or uncompressed digital audio output.

Currently, at level 200, the following properties are set:

  • Digital output is permitted.
  • Drivers in the audio stack are verified.
  • The minimum security level for drivers is 1100.

Currently, at level 300, the following properties are set:

  • Digital output is not permitted.
  • Drivers in the audio stack are verified.
  • The minimum security level for drivers is 1100.

For up-to-date information about current output protection levels, see the document WMRM SDK Compliance Rules that accompanied your license agreement from Microsoft.

Note   Windows Vista does not support SAP. If you require SAP for your content, users of Windows Vista can play it only with an application that is based on the Microsoft Media Foundation SDK, which then uses the Protected User Mode Audio (PUMA) feature.

Example Code

' Set playback restrictions.
Dim RestrictObj              ' WMRMRestrictions object
Dim PlayRestrictions         ' Playback restrictions

Set RestrictObj = Server.CreateObject("WMRMObjs.WMRMRestrictions")

' Set output protection levels for playback.  
Call RestrictObj.AddRestriction(4, 200)  ' Compressed digital audio
Call RestrictObj.AddRestriction(5, 200)  ' Uncompressed digital audio

' Get the playback restrictions string.
PlayRestrictions = RestrictObj.GetRestrictions

' Set the restrictions into the WMRMRights object.
RightsObj.PlayRestrictions = PlayRestrictions

See Also

Previous Next

© 2007 Microsoft Corporation. All rights reserved.