WMRMRights.GracePeriod
Previous | Next |
WMRMRights.GracePeriod
The GracePeriod property specifies and retrieves the number of hours during which protected content can be played on a device after its clock becomes unset.
Syntax
WMRMRights.GracePeriod = DWORD DWORD = WMRMRights.GracePeriod
Parameters
This property takes no parameters.
Return Values
If the property succeeds, it returns a DWORD indicating the number of hours in the grace period.
Remarks
The default value of this property is 0.
This right specifies the number of hours during which protected content can be played after a device clock becomes unset. If the device supports grace periods and the clock becomes unset, the device makes a "best guess" at the current time by using the value of the last-known secure time. If the current time falls within this grace period, the device plays the content.
Example Code
' Set copy restrictions. Set RestrictObj = Server.CreateObject("WMRMObjs.WMRMRestrictions") Call RestrictObj.AddRestriction(6, 400) RightsObj.CopyRestrictions = RestrictObj.GetRestrictions
Requirements
Version: Windows Media Rights Manager 10 SDK or later
Reference: wmrmobjs 1.0 Type Library
Library: wmrmobjs.dll
Platform: Windows Server 2003
See Also
Previous | Next |