decord/source/262_get Version.js
2026-07-23 10:11:24 +00:00

53 lines
1.3 KiB
JavaScript

// Module ID: 262
// Function ID: 3363
// Name: get Version
// Dependencies: [263]
// Module 262 (get Version)
const module = arg2;
const dependencyMap = arg6;
let obj = { __constants: null, OS: "android" };
Object.defineProperty(obj, "Version", {
get: function() {
return this.constants.Version;
},
set: undefined
});
Object.defineProperty(obj, "constants", {
get: function() {
const self = this;
if (null == this.__constants) {
self.__constants = module(263).getConstants();
const obj = module(263);
}
return self.__constants;
},
set: undefined
});
Object.defineProperty(obj, "isTesting", { get: () => false, set: undefined });
Object.defineProperty(obj, "isDisableAnimations", {
get: function() {
let isTesting = this.constants.isDisableAnimations;
if (null == isTesting) {
isTesting = this.isTesting;
}
return isTesting;
},
set: undefined
});
Object.defineProperty(obj, "isTV", {
get: function() {
return "tv" === this.constants.uiMode;
},
set: undefined
});
Object.defineProperty(obj, "isVision", { get: () => false, set: undefined });
obj.select = function select(android) {
if ("android" in android) {
android = android.android;
} else {
android = "native" in android ? android.native : android.default;
}
return android;
};
arg5.default = obj;