forked from LeenkxTeam/LNXSDK
Update Files
This commit is contained in:
@ -0,0 +1,8 @@
|
||||
package flash.net.drm;
|
||||
|
||||
extern class AddToDeviceGroupSetting {
|
||||
function new() : Void;
|
||||
static final ALLOW_SERVER : String;
|
||||
static final FORCE_REFRESH : String;
|
||||
static final LOCAL_ONLY : String;
|
||||
}
|
@ -0,0 +1,7 @@
|
||||
package flash.net.drm;
|
||||
|
||||
extern class AuthenticationMethod {
|
||||
function new() : Void;
|
||||
static final ANONYMOUS : String;
|
||||
static final USERNAME_AND_PASSWORD : String;
|
||||
}
|
@ -0,0 +1,6 @@
|
||||
package flash.net.drm;
|
||||
|
||||
extern class DRMAddToDeviceGroupContext extends DRMManagerSession {
|
||||
function new() : Void;
|
||||
function addToDeviceGroup(deviceGroup : DRMDeviceGroup, forceRefresh : Bool) : Void;
|
||||
}
|
@ -0,0 +1,8 @@
|
||||
package flash.net.drm;
|
||||
|
||||
extern class DRMAuthenticationContext extends DRMManagerSession {
|
||||
@:flash.property var authenticationToken(get,never) : flash.utils.ByteArray;
|
||||
function new() : Void;
|
||||
function authenticate(url : String, domain : String, username : String, password : String) : Void;
|
||||
private function get_authenticationToken() : flash.utils.ByteArray;
|
||||
}
|
14
Kha/Tools/macos/std/flash/net/drm/DRMContentData.hx
Normal file
14
Kha/Tools/macos/std/flash/net/drm/DRMContentData.hx
Normal file
@ -0,0 +1,14 @@
|
||||
package flash.net.drm;
|
||||
|
||||
extern class DRMContentData {
|
||||
@:flash.property var authenticationMethod(get,never) : String;
|
||||
@:flash.property var domain(get,never) : String;
|
||||
@:flash.property var licenseID(get,never) : String;
|
||||
@:flash.property var serverURL(get,never) : String;
|
||||
function new(?rawData : flash.utils.ByteArray) : Void;
|
||||
function getVoucherAccessInfo() : flash.Vector<VoucherAccessInfo>;
|
||||
private function get_authenticationMethod() : String;
|
||||
private function get_domain() : String;
|
||||
private function get_licenseID() : String;
|
||||
private function get_serverURL() : String;
|
||||
}
|
14
Kha/Tools/macos/std/flash/net/drm/DRMDeviceGroup.hx
Normal file
14
Kha/Tools/macos/std/flash/net/drm/DRMDeviceGroup.hx
Normal file
@ -0,0 +1,14 @@
|
||||
package flash.net.drm;
|
||||
|
||||
extern final class DRMDeviceGroup {
|
||||
@:flash.property var authenticationMethod(get,never) : String;
|
||||
@:flash.property var domain(get,never) : String;
|
||||
@:flash.property var name(get,set) : String;
|
||||
@:flash.property var serverURL(get,never) : String;
|
||||
function new() : Void;
|
||||
private function get_authenticationMethod() : String;
|
||||
private function get_domain() : String;
|
||||
private function get_name() : String;
|
||||
private function get_serverURL() : String;
|
||||
private function set_name(value : String) : String;
|
||||
}
|
22
Kha/Tools/macos/std/flash/net/drm/DRMManager.hx
Normal file
22
Kha/Tools/macos/std/flash/net/drm/DRMManager.hx
Normal file
@ -0,0 +1,22 @@
|
||||
package flash.net.drm;
|
||||
|
||||
extern class DRMManager extends flash.events.EventDispatcher {
|
||||
function new() : Void;
|
||||
function addToDeviceGroup(deviceGroup : DRMDeviceGroup, forceRefresh : Bool = false) : Void;
|
||||
function authenticate(serverURL : String, domain : String, username : String, password : String) : Void;
|
||||
function loadPreviewVoucher(contentData : DRMContentData) : Void;
|
||||
function loadVoucher(contentData : DRMContentData, setting : String) : Void;
|
||||
function removeFromDeviceGroup(deviceGroup : DRMDeviceGroup) : Void;
|
||||
function resetDRMVouchers() : Void;
|
||||
@:ns("flash.net.drm",internal) function resetDRMVouchersInternal(isAutoReset : Bool) : Void;
|
||||
function returnVoucher(inServerURL : String, immediateCommit : Bool, licenseID : String, policyID : String) : Void;
|
||||
function setAuthenticationToken(serverUrl : String, domain : String, token : flash.utils.ByteArray) : Void;
|
||||
function storeVoucher(voucher : flash.utils.ByteArray) : Void;
|
||||
@:flash.property static var isSupported(get,never) : Bool;
|
||||
@:flash.property static var networkIdleTimeout(get,set) : Float;
|
||||
static function getDRMManager() : DRMManager;
|
||||
@:ns("flash.net.drm",internal) static function getDRMManagerInternal() : DRMManager;
|
||||
private static function get_isSupported() : Bool;
|
||||
private static function get_networkIdleTimeout() : Float;
|
||||
private static function set_networkIdleTimeout(value : Float) : Float;
|
||||
}
|
23
Kha/Tools/macos/std/flash/net/drm/DRMManagerSession.hx
Normal file
23
Kha/Tools/macos/std/flash/net/drm/DRMManagerSession.hx
Normal file
@ -0,0 +1,23 @@
|
||||
package flash.net.drm;
|
||||
|
||||
extern class DRMManagerSession extends flash.events.EventDispatcher {
|
||||
var m_isInSession : Bool;
|
||||
@:flash.property var metadata(get,set) : DRMContentData;
|
||||
function new() : Void;
|
||||
function checkStatus() : UInt;
|
||||
function errorCodeToThrow(errorCode : UInt) : Void;
|
||||
function getLastError() : UInt;
|
||||
function getLastServerErrorString() : String;
|
||||
function getLastSubErrorID() : UInt;
|
||||
private function get_metadata() : DRMContentData;
|
||||
function issueDRMErrorEvent(metadata : DRMContentData, errorID : Int, subErrorID : Int, serverErrorString : String) : Void;
|
||||
function issueDRMStatusEvent(inMetadata : DRMContentData, voucher : DRMVoucher) : Dynamic;
|
||||
function onSessionComplete() : Void;
|
||||
function onSessionError() : Void;
|
||||
function setTimerUp() : Void;
|
||||
private function set_metadata(value : DRMContentData) : DRMContentData;
|
||||
@:ns("flash.net.drm",internal) static final STATUS_FAILED : UInt;
|
||||
@:ns("flash.net.drm",internal) static final STATUS_NOTREADY : UInt;
|
||||
@:ns("flash.net.drm",internal) static final STATUS_READY : UInt;
|
||||
@:ns("flash.net.drm",internal) static final STATUS_UNKNOWN : UInt;
|
||||
}
|
@ -0,0 +1,5 @@
|
||||
package flash.net.drm;
|
||||
|
||||
extern class DRMModuleCycleProvider {
|
||||
function new() : Void;
|
||||
}
|
11
Kha/Tools/macos/std/flash/net/drm/DRMPlaybackTimeWindow.hx
Normal file
11
Kha/Tools/macos/std/flash/net/drm/DRMPlaybackTimeWindow.hx
Normal file
@ -0,0 +1,11 @@
|
||||
package flash.net.drm;
|
||||
|
||||
extern class DRMPlaybackTimeWindow {
|
||||
@:flash.property var endDate(get,never) : Date;
|
||||
@:flash.property var period(get,never) : UInt;
|
||||
@:flash.property var startDate(get,never) : Date;
|
||||
function new() : Void;
|
||||
private function get_endDate() : Date;
|
||||
private function get_period() : UInt;
|
||||
private function get_startDate() : Date;
|
||||
}
|
@ -0,0 +1,6 @@
|
||||
package flash.net.drm;
|
||||
|
||||
extern class DRMRemoveFromDeviceGroupContext extends DRMManagerSession {
|
||||
function new() : Void;
|
||||
function removeFromDeviceGroup(deviceGroup : DRMDeviceGroup) : Void;
|
||||
}
|
7
Kha/Tools/macos/std/flash/net/drm/DRMResetContext.hx
Normal file
7
Kha/Tools/macos/std/flash/net/drm/DRMResetContext.hx
Normal file
@ -0,0 +1,7 @@
|
||||
package flash.net.drm;
|
||||
|
||||
extern class DRMResetContext extends DRMManagerSession {
|
||||
var m_isAutoReset : Bool;
|
||||
function new(isAutoReset : Bool) : Void;
|
||||
function doReset() : Void;
|
||||
}
|
@ -0,0 +1,6 @@
|
||||
package flash.net.drm;
|
||||
|
||||
extern class DRMReturnVoucherContext extends DRMManagerSession {
|
||||
function new() : Void;
|
||||
function returnVoucher(inServerURL : String, immediateCommit : Bool, licenseID : String, policyID : String) : Void;
|
||||
}
|
@ -0,0 +1,6 @@
|
||||
package flash.net.drm;
|
||||
|
||||
extern class DRMStoreVoucherContext extends DRMManagerSession {
|
||||
function new(voucher : flash.utils.ByteArray) : Void;
|
||||
function doStoreVoucher() : Void;
|
||||
}
|
@ -0,0 +1,7 @@
|
||||
package flash.net.drm;
|
||||
|
||||
extern class DRMURLDownloadContext extends flash.events.EventDispatcher {
|
||||
function new() : Void;
|
||||
function httpGetASync(url : String) : Void;
|
||||
function httpPostAndReceiveASync(url : String, headerName : String, headerValue : String, data : flash.utils.ByteArray, serverType : UInt) : Void;
|
||||
}
|
24
Kha/Tools/macos/std/flash/net/drm/DRMVoucher.hx
Normal file
24
Kha/Tools/macos/std/flash/net/drm/DRMVoucher.hx
Normal file
@ -0,0 +1,24 @@
|
||||
package flash.net.drm;
|
||||
|
||||
extern class DRMVoucher {
|
||||
@:flash.property var licenseID(get,never) : String;
|
||||
@:flash.property var offlineLeaseEndDate(get,never) : Date;
|
||||
@:flash.property var offlineLeaseStartDate(get,never) : Date;
|
||||
@:flash.property var playbackTimeWindow(get,never) : DRMPlaybackTimeWindow;
|
||||
@:flash.property var policies(get,never) : Dynamic;
|
||||
@:flash.property var policyID(get,never) : String;
|
||||
@:flash.property var serverURL(get,never) : String;
|
||||
@:flash.property var voucherEndDate(get,never) : Date;
|
||||
@:flash.property var voucherStartDate(get,never) : Date;
|
||||
function new() : Void;
|
||||
private function get_licenseID() : String;
|
||||
private function get_offlineLeaseEndDate() : Date;
|
||||
private function get_offlineLeaseStartDate() : Date;
|
||||
private function get_playbackTimeWindow() : DRMPlaybackTimeWindow;
|
||||
private function get_policies() : Dynamic;
|
||||
private function get_policyID() : String;
|
||||
private function get_serverURL() : String;
|
||||
private function get_voucherEndDate() : Date;
|
||||
private function get_voucherStartDate() : Date;
|
||||
function toByteArray() : flash.utils.ByteArray;
|
||||
}
|
@ -0,0 +1,8 @@
|
||||
package flash.net.drm;
|
||||
|
||||
extern class DRMVoucherDownloadContext extends DRMManagerSession {
|
||||
@:flash.property var voucher(get,never) : DRMVoucher;
|
||||
function new() : Void;
|
||||
function download(inMetadata : DRMContentData, previewVoucher : Bool = false) : Void;
|
||||
private function get_voucher() : DRMVoucher;
|
||||
}
|
@ -0,0 +1,8 @@
|
||||
package flash.net.drm;
|
||||
|
||||
extern class DRMVoucherStoreContext extends DRMManagerSession {
|
||||
@:flash.property var voucher(get,never) : DRMVoucher;
|
||||
function new() : Void;
|
||||
function getVoucherFromStore(inMetadata : DRMContentData) : Void;
|
||||
private function get_voucher() : DRMVoucher;
|
||||
}
|
8
Kha/Tools/macos/std/flash/net/drm/LoadVoucherSetting.hx
Normal file
8
Kha/Tools/macos/std/flash/net/drm/LoadVoucherSetting.hx
Normal file
@ -0,0 +1,8 @@
|
||||
package flash.net.drm;
|
||||
|
||||
extern class LoadVoucherSetting {
|
||||
function new() : Void;
|
||||
static final ALLOW_SERVER : String;
|
||||
static final FORCE_REFRESH : String;
|
||||
static final LOCAL_ONLY : String;
|
||||
}
|
15
Kha/Tools/macos/std/flash/net/drm/VoucherAccessInfo.hx
Normal file
15
Kha/Tools/macos/std/flash/net/drm/VoucherAccessInfo.hx
Normal file
@ -0,0 +1,15 @@
|
||||
package flash.net.drm;
|
||||
|
||||
extern final class VoucherAccessInfo {
|
||||
@:flash.property var authenticationMethod(get,never) : String;
|
||||
@:flash.property var deviceGroup(get,never) : DRMDeviceGroup;
|
||||
@:flash.property var displayName(get,never) : String;
|
||||
@:flash.property var domain(get,never) : String;
|
||||
@:flash.property var policyID(get,never) : String;
|
||||
function new() : Void;
|
||||
private function get_authenticationMethod() : String;
|
||||
private function get_deviceGroup() : DRMDeviceGroup;
|
||||
private function get_displayName() : String;
|
||||
private function get_domain() : String;
|
||||
private function get_policyID() : String;
|
||||
}
|
Reference in New Issue
Block a user