decord/source/273_get Version.js

54 lines
1.3 KiB
JavaScript
Raw Normal View History

2026-07-29 08:29:29 +00:00
// Module ID: 273
// Function ID: 274
2026-07-20 16:05:17 +00:00
// Name: get Version
2026-07-29 08:29:29 +00:00
// Dependencies: [274]
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
// Module 273 (get Version)
2026-07-23 10:11:24 +00:00
const module = arg2;
const dependencyMap = arg6;
let obj = { __constants: null, OS: "android" };
2026-07-20 16:05:17 +00:00
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) {
2026-07-29 08:29:29 +00:00
self.__constants = module(274).getConstants();
const obj = module(274);
2026-07-20 16:05:17 +00:00
}
return self.__constants;
},
set: undefined
});
Object.defineProperty(obj, "isTesting", { get: () => false, set: undefined });
Object.defineProperty(obj, "isDisableAnimations", {
get: function() {
let isTesting = this.constants.isDisableAnimations;
2026-07-29 08:29:29 +00:00
if (isTesting == null) {
2026-07-20 16:05:17 +00:00
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;