DRMManager.hx 1.1 KB

12345678910111213141516171819
  1. package flash.net.drm;
  2. extern class DRMManager extends flash.events.EventDispatcher {
  3. function new() : Void;
  4. function addToDeviceGroup(deviceGroup : DRMDeviceGroup, forceRefresh : Bool = false) : Void;
  5. function authenticate(serverURL : String, domain : String, username : String, password : String) : Void;
  6. function loadPreviewVoucher(contentData : DRMContentData) : Void;
  7. function loadVoucher(contentData : DRMContentData, setting : String) : Void;
  8. function removeFromDeviceGroup(deviceGroup : DRMDeviceGroup) : Void;
  9. function resetDRMVouchers() : Void;
  10. function resetDRMVouchersInternal(isAutoReset : Bool) : Void;
  11. function returnVoucher(inServerURL : String, immediateCommit : Bool, licenseID : String, policyID : String) : Void;
  12. function setAuthenticationToken(serverUrl : String, domain : String, token : flash.utils.ByteArray) : Void;
  13. function storeVoucher(voucher : flash.utils.ByteArray) : Void;
  14. static var isSupported(default,null) : Bool;
  15. static var networkIdleTimeout : Float;
  16. static function getDRMManager() : DRMManager;
  17. static function getDRMManagerInternal() : DRMManager;
  18. }