125 lines
7.1 KiB
TypeScript
125 lines
7.1 KiB
TypeScript
/* Metro module 4399; source: stores/ApplicationStreamingSettingsStore.tsx; dependencies: [6, 7, 15, 17, 18, 4282, 4291, 566, 694, 2] */
|
|
import ClassCallCheck from '../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
|
|
import CreateClass from '../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
|
|
import PossibleConstructorReturn from '../by-id/module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */
|
|
import Module00017 from '../by-id/module-00017.js'; /* Metro dependency 17 */
|
|
import Inherits from '../by-id/module-00018-Inherits.js'; /* Metro dependency 18 */
|
|
import Flux from '../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
|
|
import * as FileImportTrackerModule from '../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as StreamSettingsConstantsModule from '../modules/go_live/StreamSettingsConstants.tsx'; /* Metro dependency 4282 */
|
|
import * as ConstantsModule from '../external/discord_common/js/packages/media-engine/Constants.tsx'; /* Metro dependency 4291 */
|
|
|
|
function _fun37376(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#37376, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4571:6, offset: 0x010a3d1c, size: 373 bytes, params: 8, frame: 21
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
let value = StreamSettingsConstantsModule;
|
|
const ApplicationStreamResolutions = value.ApplicationStreamResolutions;
|
|
const ApplicationStreamFPS = value.ApplicationStreamFPS;
|
|
const ApplicationStreamPresets = value.ApplicationStreamPresets;
|
|
const env0_7 = ApplicationStreamPresets.PRESET_VIDEO;
|
|
const env0_8 = ApplicationStreamResolutions.RESOLUTION_720;
|
|
const env0_9 = ApplicationStreamFPS.FPS_30;
|
|
const PersistedStore = (Flux).PersistedStore;
|
|
value = _fun37380(PersistedStore);
|
|
value.displayName = 'ApplicationStreamingSettingsStore';
|
|
value.persistKey = 'ApplicationStreamingSettingStore';
|
|
value = new value(importDefault(694) /* metro dependency 694: Dispatcher */,
|
|
{MEDIA_ENGINE_SET_GO_LIVE_SOURCE: MEDIA_ENGINE_SET_GO_LIVE_SOURCE_37384,
|
|
STREAM_UPDATE_SETTINGS: STREAM_UPDATE_SETTINGS});
|
|
(FileImportTrackerModule).fileFinishedImporting('stores/ApplicationStreamingSettingsStore.tsx');
|
|
exports.default = value;
|
|
function _isNativeReflectConstruct_37377() { // fn#37377, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4571:279, offset: 0x010a3e91, size: 94 bytes, params: 1, frame: 18
|
|
var Boolean;
|
|
var prototype;
|
|
var valueOf;
|
|
var call;
|
|
var Reflect;
|
|
var construct;
|
|
var closure;
|
|
var value;
|
|
var error;
|
|
try {
|
|
Boolean = global.Boolean;
|
|
prototype = Boolean.prototype;
|
|
valueOf = prototype.valueOf;
|
|
call = valueOf.call;
|
|
Reflect = global.Reflect;
|
|
construct = Reflect.construct;
|
|
Boolean = global.Boolean;
|
|
closure = function() {
|
|
};
|
|
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
|
|
value = Reflect.apply(call, valueOf, [value]);
|
|
var result = !value;
|
|
} catch (error) {
|
|
}
|
|
return (_isNativeReflectConstruct_37377_isNativeReflectConstruct = function() {
|
|
return !!result;
|
|
})();
|
|
}
|
|
|
|
function _fun37380(a0) { // fn#37380, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4571:534, offset: 0x010a3eef, size: 91 bytes, params: 2, frame: 16
|
|
const ApplicationStreamingSettingsStore2 = ApplicationStreamingSettingsStore;
|
|
Inherits(ApplicationStreamingSettingsStore2, a0);
|
|
return CreateClass(ApplicationStreamingSettingsStore2, [{key: 'initialize', value: value_37382}, {key: 'getState',
|
|
value: value_37383}]);
|
|
function ApplicationStreamingSettingsStore() { // fn#37381, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4571:546, offset: 0x010a3f4a, size: 113 bytes, params: 1, frame: 20
|
|
const value = environment.__proto__;
|
|
env1_0(this, ApplicationStreamingSettingsStore);
|
|
const value3 = env1_3(ApplicationStreamingSettingsStore);
|
|
return env1_2(this, _isNativeReflectConstruct_37377() ? global.Reflect.construct(value3, arguments,
|
|
env1_3(this).constructor) : value3.apply(this, arguments));
|
|
}
|
|
|
|
function value_37382(a0) { // fn#37382, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4571:929, offset: 0x010a3fbb, size: 83 bytes, params: 2, frame: 4
|
|
var r3;
|
|
var r0;
|
|
var value;
|
|
var resolution;
|
|
var fps;
|
|
var soundshareEnabled;
|
|
if (a0 != null) {
|
|
r3 = a0.preset ?? ApplicationStreamPresets.PRESET_VIDEO;
|
|
value = environment.__proto__;
|
|
resolution = a0.resolution;
|
|
fps = a0.fps;
|
|
soundshareEnabled = a0.soundshareEnabled;
|
|
r0 = soundshareEnabled == null || soundshareEnabled;
|
|
}
|
|
}
|
|
|
|
function value_37383() { // fn#37383, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4571:1080, offset: 0x010a400e, size: 43 bytes, params: 1, frame: 3
|
|
return {preset: PRESET_VIDEO, resolution: RESOLUTION_720, fps: FPS_30, soundshareEnabled: env1_10};
|
|
}
|
|
|
|
}
|
|
|
|
function MEDIA_ENGINE_SET_GO_LIVE_SOURCE_37384({settings}) { // fn#37384, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4571:1327, offset: 0x010a4039, size: 186 bytes, params: 2, frame: 6
|
|
const value = undefined;
|
|
const context = settings == null ? value : settings.context;
|
|
const STREAM = MediaEngineContextTypes.STREAM;
|
|
if (context !== STREAM) {
|
|
return false;
|
|
}
|
|
if ((settings == null ? value : settings.qualityOptions) == null) {
|
|
return false;
|
|
}
|
|
let r0 = !(PRESET_VIDEO === settings.qualityOptions.preset) && true;
|
|
r0 = RESOLUTION_720 !== settings.qualityOptions.resolution || r0;
|
|
r0 = FPS_30 !== settings.qualityOptions.frameRate || r0;
|
|
return r0;
|
|
}
|
|
|
|
function STREAM_UPDATE_SETTINGS({preset, resolution, frameRate, soundshareEnabled}) { // fn#37385, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4571:1705, offset: 0x010a40f3, size: 153 bytes, params: 2, frame: 7
|
|
let r0 = preset != null && preset !== PRESET_VIDEO && true;
|
|
r0 = resolution != null && resolution !== RESOLUTION_720 || r0;
|
|
r0 = frameRate != null && frameRate !== FPS_30 || r0;
|
|
r0 = soundshareEnabled != null && soundshareEnabled !== env0_10 || r0;
|
|
return r0;
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun37376, 4399, [6, 7, 15, 17, 18, 4282, 4291, 566, 694,
|
|
2]) /* metro module 4399, dependencies: [6, 7, 15, 17, 18, 4282, 4291, 566, 694, 2] */;
|