This commit is contained in:
janisslsm committed 2026-07-28 01:06:53 +03:00
1 parent af3b49f756
commit 1781d25a15
22448 files changed
+2731829 -2650550

No files matched your search

+239 -235
View File
@@ -1,113 +1,127 @@
/* Metro module 13611; source: modules/video-qoe/MobileMuxWrapper.tsx; dependencies: [6, 7, 4, 13612, 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 * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as LoggerModule from '../../external/discord_common/js/packages/logger/Logger.tsx'; /* Metro dependency 4 */
function _fun103931(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#103931, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13808:6, offset: 0x02279160, size: 180 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = importDefault(6) /* metro dependency 6 */;
const env0_3 = importDefault(7) /* metro dependency 7 */;
const Logger = (require(4) /* metro dependency 4: Logger */).Logger;
const Logger = (LoggerModule).Logger;
let logger = new Logger('MobileMuxWrapper');
logger = _fun103932();
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/video-qoe/MobileMuxWrapper.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/video-qoe/MobileMuxWrapper.tsx');
exports.MobileMuxWrapper = logger;
}
function _fun103932() { // fn#103932, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13808:160, offset: 0x02279214, size: 588 bytes, params: 1, frame: 15
return env0_3(MobileMuxWrapper, [{key: 'initialize', value: value_103934}, {key: 'updatePlayheadTime',
value: function(a0) {
var muxIntegration = this.muxIntegration;
if (muxIntegration != null) {
muxIntegration.updatePlayheadTime(a0);
}
}}, {key: 'updateVideoDimensions', value: function(a0, a1) {
var muxIntegration = this.muxIntegration;
if (muxIntegration != null) {
muxIntegration.updateVideoDimensions(a0, a1);
}
}}, {key: 'updateVideoSourceDimensions', value: function(a0, a1) {
var muxIntegration = this.muxIntegration;
if (muxIntegration != null) {
muxIntegration.updateVideoSourceDimensions(a0, a1);
}
}}, {key: 'updateVideoSource', value: function(a0, a1, a2) {
var muxIntegration = this.muxIntegration;
if (muxIntegration != null) {
muxIntegration.updateVideoSource(a0, a1, a2);
}
}}, {key: 'updatePlayerState', value: function(a0, a1) {
var muxIntegration = this.muxIntegration;
if (muxIntegration != null) {
muxIntegration.updatePlayerState(a0, a1);
}
}}, {key: 'onLoadStart', value: function() {
var muxIntegration = this.muxIntegration;
if (muxIntegration != null) {
muxIntegration.emitLoadStart();
}
}}, {key: 'onLoad', value: function(a0) {
var muxIntegration = this.muxIntegration;
if (muxIntegration != null) {
muxIntegration.emitLoad(a0);
}
}}, {key: 'onPlay', value: function() {
var muxIntegration = this.muxIntegration;
if (muxIntegration != null) {
muxIntegration.emitPlay();
}
}}, {key: 'onPause', value: function() {
var muxIntegration = this.muxIntegration;
if (muxIntegration != null) {
muxIntegration.emitPause();
}
}}, {key: 'onPlaying', value: function() {
var muxIntegration = this.muxIntegration;
if (muxIntegration != null) {
muxIntegration.emitPlaying();
}
}}, {key: 'onCanPlay', value: function() {
var muxIntegration = this.muxIntegration;
if (muxIntegration != null) {
muxIntegration.emitCanPlay();
}
}}, {key: 'onSeek', value: function() {
var env0_0 = this;
if (this.muxIntegration != null) {
if (!this.seekingEmitted) {
this.muxIntegration.emitSeeking();
this.seekingEmitted = true;
function _fun103932() { // fn#103932, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13808:160, offset: 0x02279214, size: 588 bytes, params: 1, frame: 15
return CreateClass(MobileMuxWrapper, [{key: 'initialize', value: value_103934}, {key: 'updatePlayheadTime',
value: function(a0) {
var muxIntegration = this.muxIntegration;
if (muxIntegration != null) {
muxIntegration.updatePlayheadTime(a0);
}
if (this.seekTimeout != null) {
global.clearTimeout(this.seekTimeout);
}}, {key: 'updateVideoDimensions', value: function(a0, a1) {
var muxIntegration = this.muxIntegration;
if (muxIntegration != null) {
muxIntegration.updateVideoDimensions(a0, a1);
}
this.seekTimeout = global.setTimeout(_fun103947, 100);
}
}}, {key: 'onEnd', value: function() {
var muxIntegration = this.muxIntegration;
if (muxIntegration != null) {
muxIntegration.emitEnded();
}
muxIntegration = this.muxIntegration;
if (muxIntegration != null) {
muxIntegration.destroy();
}
}}, {key: 'onError', value: function(a0) {
var muxIntegration = this.muxIntegration;
if (muxIntegration != null) {
muxIntegration.emitError(a0);
}
}}, {key: 'onProgress', value: function(a0) {
this.updatePlayheadTime(a0);
var muxIntegration = this.muxIntegration;
if (muxIntegration != null) {
muxIntegration.emitTimeUpdate();
}
}}, {key: 'onBuffer', value: function(a0) {
var muxIntegration;
if (!a0) {
muxIntegration = this.muxIntegration;
}}, {key: 'updateVideoSourceDimensions', value: function(a0, a1) {
var muxIntegration = this.muxIntegration;
if (muxIntegration != null) {
muxIntegration.updateVideoSourceDimensions(a0, a1);
}
}}, {key: 'updateVideoSource', value: function(a0, a1, a2) {
var muxIntegration = this.muxIntegration;
if (muxIntegration != null) {
muxIntegration.updateVideoSource(a0, a1, a2);
}
}}, {key: 'updatePlayerState', value: function(a0, a1) {
var muxIntegration = this.muxIntegration;
if (muxIntegration != null) {
muxIntegration.updatePlayerState(a0, a1);
}
}}, {key: 'onLoadStart', value: function() {
var muxIntegration = this.muxIntegration;
if (muxIntegration != null) {
muxIntegration.emitLoadStart();
}
}}, {key: 'onLoad', value: function(a0) {
var muxIntegration = this.muxIntegration;
if (muxIntegration != null) {
muxIntegration.emitLoad(a0);
}
}}, {key: 'onPlay', value: function() {
var muxIntegration = this.muxIntegration;
if (muxIntegration != null) {
muxIntegration.emitPlay();
}
}}, {key: 'onPause', value: function() {
var muxIntegration = this.muxIntegration;
if (muxIntegration != null) {
muxIntegration.emitPause();
}
}}, {key: 'onPlaying', value: function() {
var muxIntegration = this.muxIntegration;
if (muxIntegration != null) {
muxIntegration.emitPlaying();
}
}}, {key: 'onCanPlay', value: function() {
var muxIntegration = this.muxIntegration;
if (muxIntegration != null) {
muxIntegration.emitCanPlay();
}
}}, {key: 'onSeek', value: function() {
var env0_0 = this;
if (this.muxIntegration != null) {
if (!this.seekingEmitted) {
this.muxIntegration.emitSeeking();
this.seekingEmitted = true;
}
if (this.seekTimeout != null) {
global.clearTimeout(this.seekTimeout);
}
this.seekTimeout = global.setTimeout(_fun103947, 100);
}
}}, {key: 'onEnd', value: function() {
var muxIntegration = this.muxIntegration;
if (muxIntegration != null) {
muxIntegration.emitEnded();
}
muxIntegration = this.muxIntegration;
if (muxIntegration != null) {
muxIntegration.destroy();
}
}}, {key: 'onError', value: function(a0) {
var muxIntegration = this.muxIntegration;
if (muxIntegration != null) {
muxIntegration.emitError(a0);
}
}}, {key: 'onProgress', value: function(a0) {
this.updatePlayheadTime(a0);
var muxIntegration = this.muxIntegration;
if (muxIntegration != null) {
muxIntegration.emitTimeUpdate();
}
}}, {key: 'onBuffer', value: function(a0) {
var muxIntegration;
if (!a0) {
muxIntegration = this.muxIntegration;
if (muxIntegration != null) {
muxIntegration.emitCanPlay();
}
muxIntegration = this.muxIntegration;
if (muxIntegration != null && muxIntegration.hasPlayStarted()) {
muxIntegration = this.muxIntegration;
if (muxIntegration != null) {
muxIntegration.emitPlaying();
}
}
}
}}, {key: 'onReadyForDisplay', value: function() {
var muxIntegration = this.muxIntegration;
if (muxIntegration != null) {
muxIntegration.emitPlayerReady();
}
muxIntegration = this.muxIntegration;
if (muxIntegration != null && muxIntegration.hasPlayStarted()) {
muxIntegration = this.muxIntegration;
@@ -115,148 +129,138 @@ function _fun103932() { // fn#103932, source: /ci/build/discord/discord/discord_
muxIntegration.emitPlaying();
}
}
}
}}, {key: 'onReadyForDisplay', value: function() {
var muxIntegration = this.muxIntegration;
if (muxIntegration != null) {
muxIntegration.emitPlayerReady();
}
muxIntegration = this.muxIntegration;
if (muxIntegration != null && muxIntegration.hasPlayStarted()) {
muxIntegration = this.muxIntegration;
if (muxIntegration != null) {
muxIntegration.emitPlaying();
}}, {key: 'onVideoTrackChange', value: function(a0, a1) {
var muxIntegration;
var env0_0 = a0;
var value = a1.find(_fun103954);
if (value != null) {
muxIntegration = this.muxIntegration;
if (muxIntegration != null) {
muxIntegration.emitRenditionChange(value.width, value.height, value.bitrate);
}
}
}
}}, {key: 'onVideoTrackChange', value: function(a0, a1) {
var muxIntegration;
var env0_0 = a0;
var value = a1.find(_fun103954);
if (value != null) {
muxIntegration = this.muxIntegration;
if (muxIntegration != null) {
muxIntegration.emitRenditionChange(value.width, value.height, value.bitrate);
}
}
}}, {key: 'destroy', value: value_103955}, {key: 'getSessionId', value: function() {
var r1;
var muxIntegration = this.muxIntegration;
var value = null;
r1 = value == muxIntegration ? undefined : muxIntegration.getSessionId();
return value != r1 ? r1 : value;
}}, {key: 'isInitialized', value: function() {
return this.muxIntegration != null;
}}]);
}
function MobileMuxWrapper(a0) { // fn#103933, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13808:181, offset: 0x02279460, size: 58 bytes, params: 2, frame: 13
env1_2(this, MobileMuxWrapper);
this.muxIntegration = null;
this.seekingEmitted = false;
this.seekTimeout = null;
this.config = a0;
}
function value_103934() { // fn#103934, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13808:346, offset: 0x0227949a, size: 143 bytes, params: 1, frame: 14
var value;
var property;
var moduleValue;
var MobileCustomMuxIntegration;
var config;
var prototype;
var value2;
var mobileCustomMuxIntegration;
var value3;
var muxIntegration;
var binding;
var error;
try {
value = environment.__proto__;
property = dependencyMap[3];
moduleValue = require(property);
MobileCustomMuxIntegration = moduleValue.MobileCustomMuxIntegration;
config = this.config;
prototype = MobileCustomMuxIntegration.prototype;
value2 = Object.create(prototype, {constructor: {value: MobileCustomMuxIntegration}});
mobileCustomMuxIntegration = new MobileCustomMuxIntegration();
value3 = mobileCustomMuxIntegration instanceof Object ? mobileCustomMuxIntegration : value2;
this.muxIntegration = value3;
muxIntegration = this.muxIntegration;
muxIntegration.initialize();
binding = env1_4;
binding.info('MobileMuxWrapper initialized successfully');
} catch (error) {
binding = env1_4;
binding.error('Error initializing MobileMuxWrapper', error);
this.muxIntegration = null;
}
}
function value_103946() { // fn#103946, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13808:1724, offset: 0x0227969c, size: 123 bytes, params: 1, frame: 14
if (this.muxIntegration != null) {
if (!this.seekingEmitted) {
this.muxIntegration.emitSeeking();
this.seekingEmitted = true;
}
if (this.seekTimeout != null) {
global.clearTimeout(this.seekTimeout);
}
this.seekTimeout = global.setTimeout(_fun103947, 100);
}
}
function value_103953(a0, a1) { // fn#103953, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13808:2812, offset: 0x0227986b, size: 84 bytes, params: 3, frame: 15
var muxIntegration;
const env0_0 = a0;
const value = a1.find(_fun103954);
if (value != null) {
muxIntegration = this.muxIntegration;
if (muxIntegration != null) {
muxIntegration.emitRenditionChange(value.width, value.height, value.bitrate);
}
}
}
function value_103955() { // fn#103955, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13808:2976, offset: 0x022798d5, size: 106 bytes, params: 1, frame: 15
var seekTimeout;
var value;
var clearTimeout;
var muxIntegration;
var error;
var binding;
try {
seekTimeout = this.seekTimeout;
value = seekTimeout == null;
if (!value) {
clearTimeout = global.clearTimeout;
seekTimeout = this.seekTimeout;
clearTimeout(seekTimeout);
}}, {key: 'destroy', value: value_103955}, {key: 'getSessionId', value: function() {
var r1;
var muxIntegration = this.muxIntegration;
var value = null;
r1 = value == muxIntegration ? undefined : muxIntegration.getSessionId();
return value != r1 ? r1 : value;
}}, {key: 'isInitialized', value: function() {
return this.muxIntegration != null;
}}]);
function MobileMuxWrapper(a0) { // fn#103933, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13808:181, offset: 0x02279460, size: 58 bytes, params: 2, frame: 13
env1_2(this, MobileMuxWrapper);
this.muxIntegration = null;
this.seekingEmitted = false;
this.seekTimeout = null;
this.config = a0;
}
muxIntegration = this.muxIntegration;
value = muxIntegration == null;
if (!value) {
muxIntegration.destroy();
function value_103934() { // fn#103934, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13808:346, offset: 0x0227949a, size: 143 bytes, params: 1, frame: 14
var value;
var property;
var moduleValue;
var MobileCustomMuxIntegration;
var config;
var prototype;
var value2;
var mobileCustomMuxIntegration;
var value3;
var muxIntegration;
var binding;
var error;
try {
value = environment.__proto__;
property = dependencyMap[3];
moduleValue = require(property);
MobileCustomMuxIntegration = moduleValue.MobileCustomMuxIntegration;
config = this.config;
prototype = MobileCustomMuxIntegration.prototype;
value2 = Object.create(prototype, {constructor: {value: MobileCustomMuxIntegration}});
mobileCustomMuxIntegration = new MobileCustomMuxIntegration();
value3 = mobileCustomMuxIntegration instanceof Object ? mobileCustomMuxIntegration : value2;
this.muxIntegration = value3;
muxIntegration = this.muxIntegration;
muxIntegration.initialize();
binding = env1_4;
binding.info('MobileMuxWrapper initialized successfully');
} catch (error) {
binding = env1_4;
binding.error('Error initializing MobileMuxWrapper', error);
this.muxIntegration = null;
}
}
this.muxIntegration = null;
} catch (error) {
value = environment.__proto__;
binding = env1_4;
binding.error('Error destroying MobileMuxWrapper', error);
function value_103946() { // fn#103946, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13808:1724, offset: 0x0227969c, size: 123 bytes, params: 1, frame: 14
if (this.muxIntegration != null) {
if (!this.seekingEmitted) {
this.muxIntegration.emitSeeking();
this.seekingEmitted = true;
}
if (this.seekTimeout != null) {
global.clearTimeout(this.seekTimeout);
}
this.seekTimeout = global.setTimeout(_fun103947, 100);
}
function _fun103947() { // fn#103947, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13808:1927, offset: 0x02279717, size: 53 bytes, params: 1, frame: 11
const muxIntegration = env0_0.muxIntegration;
if (muxIntegration != null) {
muxIntegration.emitSeeked();
}
const binding = env0_0;
binding.seekingEmitted = false;
binding.seekTimeout = null;
}
}
function value_103953(a0, a1) { // fn#103953, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13808:2812, offset: 0x0227986b, size: 84 bytes, params: 3, frame: 15
var muxIntegration;
const env0_0 = a0;
const value = a1.find(_fun103954);
if (value != null) {
muxIntegration = this.muxIntegration;
if (muxIntegration != null) {
muxIntegration.emitRenditionChange(value.width, value.height, value.bitrate);
}
}
function _fun103954({trackId}) { // fn#103954, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13808:2842, offset: 0x022798bf, size: 22 bytes, params: 2, frame: 2
return trackId === env0_0;
}
}
function value_103955() { // fn#103955, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13808:2976, offset: 0x022798d5, size: 106 bytes, params: 1, frame: 15
var seekTimeout;
var value;
var clearTimeout;
var muxIntegration;
var error;
var binding;
try {
seekTimeout = this.seekTimeout;
value = seekTimeout == null;
if (!value) {
clearTimeout = global.clearTimeout;
seekTimeout = this.seekTimeout;
clearTimeout(seekTimeout);
this.seekTimeout = null;
}
muxIntegration = this.muxIntegration;
value = muxIntegration == null;
if (!value) {
muxIntegration.destroy();
}
this.muxIntegration = null;
} catch (error) {
value = environment.__proto__;
binding = env1_4;
binding.error('Error destroying MobileMuxWrapper', error);
}
}
}
}
function _fun103947() { // fn#103947, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13808:1927, offset: 0x02279717, size: 53 bytes, params: 1, frame: 11
const muxIntegration = env0_0.muxIntegration;
if (muxIntegration != null) {
muxIntegration.emitSeeked();
}
const binding = env0_0;
binding.seekingEmitted = false;
binding.seekTimeout = null;
}
function _fun103954({trackId}) { // fn#103954, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13808:2842, offset: 0x022798bf, size: 22 bytes, params: 2, frame: 2
return trackId === env0_0;
}
global.__d(_fun103931, 13611, [6, 7, 4, 13612, 2]) /* metro module 13611, dependencies: [6, 7, 4, 13612, 2] */;
+116 -110
View File
@@ -1,129 +1,135 @@
/* Metro module 13607; source: modules/video-qoe/SimpleMuxWrapper.tsx; dependencies: [6, 7, 4, 13608, 13609, 13610, 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 * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as LoggerModule from '../../external/discord_common/js/packages/logger/Logger.tsx'; /* Metro dependency 4 */
import * as SessionManagerModule from './utils/SessionManager.tsx'; /* Metro dependency 13608 */
function _fun103483(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#103483, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13797:6, offset: 0x0226b133, size: 184 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(6) /* metro dependency 6 */;
const env0_4 = importDefault(7) /* metro dependency 7 */;
const Logger = (require(4) /* metro dependency 4: Logger */).Logger;
const Logger = (LoggerModule).Logger;
let logger = new Logger('SimpleMuxWrapper');
logger = _fun103484();
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/video-qoe/SimpleMuxWrapper.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/video-qoe/SimpleMuxWrapper.tsx');
exports.SimpleMuxWrapper = logger;
}
function _fun103484() { // fn#103484, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13797:160, offset: 0x0226b1eb, size: 134 bytes, params: 1, frame: 15
return env0_4(SimpleMuxWrapper, [{key: 'initialize', value: value_103486}, {key: 'endSession', value: value_103487},
{key: 'destroy', value: value_103488}, {key: 'getSessionId', value: function() {
return this.sessionId;
}}]);
}
function SimpleMuxWrapper(a0) { // fn#103485, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13797:181, offset: 0x0226b271, size: 110 bytes, params: 2, frame: 15
env1_3(this, SimpleMuxWrapper);
this.isMonitoring = false;
this.config = a0;
this.videoElement = a0.videoElement;
const SessionManager = (require(13608) /* metro dependency 13608: SessionManager */).SessionManager;
this.sessionId = SessionManager.generateSessionId();
this.hlsInstance = a0.hlsInstance;
}
function value_103486() { // fn#103486, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13797:419, offset: 0x0226b2df, size: 236 bytes, params: 1, frame: 20
var property;
var defaultImport;
var monitor;
var videoElement;
var error;
var binding;
const object2 = {'debug': null, 'disableCookies': true, 'respectDoNotTrack': true};
const debug = this.config.debug;
object2.debug = debug != null && debug;
value = environment.__proto__;
const MuxIntegration = require(dependencyMap[4]).MuxIntegration;
object2.data = MuxIntegration.mapDiscordToMuxMetadata(this.config, this.sessionId);
let hlsInstance = this.hlsInstance;
if (hlsInstance != null) {
hlsInstance = this.hlsInstance;
object2.hlsjs = hlsInstance;
hlsInstance = this.hlsInstance;
object2.Hls = hlsInstance.constructor;
}
try {
property = dependencyMap[5];
defaultImport = importDefault(property);
monitor = defaultImport.monitor;
videoElement = this.videoElement;
Reflect.apply(monitor, defaultImport, [videoElement, object2]);
this.isMonitoring = true;
} catch (error) {
binding = env1_5;
binding.error('Error creating Mux monitor', error);
this.isMonitoring = false;
}
}
function value_103487() { // fn#103487, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13797:841, offset: 0x0226b3cb, size: 128 bytes, params: 1, frame: 15
var value;
var property;
var defaultImport;
var destroyMonitor;
var value2;
var defaultImport2;
var videoElement;
var error;
var binding;
if (this.isMonitoring) {
try {
value = environment.__proto__;
property = dependencyMap[5];
defaultImport = importDefault(property);
destroyMonitor = defaultImport.destroyMonitor;
value2 = typeof destroyMonitor !== 'function';
if (!value2) {
property = dependencyMap[5];
defaultImport2 = importDefault(property);
destroyMonitor = defaultImport2.destroyMonitor;
videoElement = this.videoElement;
Reflect.apply(destroyMonitor, defaultImport2, [videoElement]);
}
function _fun103484() { // fn#103484, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13797:160, offset: 0x0226b1eb, size: 134 bytes, params: 1, frame: 15
return CreateClass(SimpleMuxWrapper, [{key: 'initialize', value: value_103486}, {key: 'endSession', value: value_103487},
{key: 'destroy', value: value_103488}, {key: 'getSessionId', value: function() {
return this.sessionId;
}}]);
function SimpleMuxWrapper(a0) { // fn#103485, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13797:181, offset: 0x0226b271, size: 110 bytes, params: 2, frame: 15
env1_3(this, SimpleMuxWrapper);
this.isMonitoring = false;
} catch (error) {
binding = env1_5;
binding.error('Error ending Mux session', error);
this.config = a0;
this.videoElement = a0.videoElement;
const SessionManager = (SessionManagerModule).SessionManager;
this.sessionId = SessionManager.generateSessionId();
this.hlsInstance = a0.hlsInstance;
}
}
}
function value_103488() { // fn#103488, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13797:1054, offset: 0x0226b44b, size: 128 bytes, params: 1, frame: 15
var value;
var property;
var defaultImport;
var destroyMonitor;
var value2;
var defaultImport2;
var videoElement;
var error;
var binding;
if (this.isMonitoring) {
try {
function value_103486() { // fn#103486, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13797:419, offset: 0x0226b2df, size: 236 bytes, params: 1, frame: 20
var property;
var defaultImport;
var monitor;
var videoElement;
var error;
var binding;
const object = {'debug': null, 'disableCookies': true, 'respectDoNotTrack': true};
const debug = this.config.debug;
object.debug = debug != null && debug;
value = environment.__proto__;
property = dependencyMap[5];
defaultImport = importDefault(property);
destroyMonitor = defaultImport.destroyMonitor;
value2 = typeof destroyMonitor !== 'function';
if (!value2) {
const MuxIntegration = require(dependencyMap[4]).MuxIntegration;
object.data = MuxIntegration.mapDiscordToMuxMetadata(this.config, this.sessionId);
let hlsInstance = this.hlsInstance;
if (hlsInstance != null) {
hlsInstance = this.hlsInstance;
object.hlsjs = hlsInstance;
hlsInstance = this.hlsInstance;
object.Hls = hlsInstance.constructor;
}
try {
property = dependencyMap[5];
defaultImport2 = importDefault(property);
destroyMonitor = defaultImport2.destroyMonitor;
defaultImport = importDefault(property);
monitor = defaultImport.monitor;
videoElement = this.videoElement;
Reflect.apply(destroyMonitor, defaultImport2, [videoElement]);
Reflect.apply(monitor, defaultImport, [videoElement, object]);
this.isMonitoring = true;
} catch (error) {
binding = env1_5;
binding.error('Error creating Mux monitor', error);
this.isMonitoring = false;
}
this.isMonitoring = false;
} catch (error) {
binding = env1_5;
binding.error('Error destroying Mux monitor', error);
}
function value_103487() { // fn#103487, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13797:841, offset: 0x0226b3cb, size: 128 bytes, params: 1, frame: 15
var value;
var property;
var defaultImport;
var destroyMonitor;
var value2;
var defaultImport2;
var videoElement;
var error;
var binding;
if (this.isMonitoring) {
try {
value = environment.__proto__;
property = dependencyMap[5];
defaultImport = importDefault(property);
destroyMonitor = defaultImport.destroyMonitor;
value2 = typeof destroyMonitor !== 'function';
if (!value2) {
property = dependencyMap[5];
defaultImport2 = importDefault(property);
destroyMonitor = defaultImport2.destroyMonitor;
videoElement = this.videoElement;
Reflect.apply(destroyMonitor, defaultImport2, [videoElement]);
}
this.isMonitoring = false;
} catch (error) {
binding = env1_5;
binding.error('Error ending Mux session', error);
}
}
}
function value_103488() { // fn#103488, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13797:1054, offset: 0x0226b44b, size: 128 bytes, params: 1, frame: 15
var value;
var property;
var defaultImport;
var destroyMonitor;
var value2;
var defaultImport2;
var videoElement;
var error;
var binding;
if (this.isMonitoring) {
try {
value = environment.__proto__;
property = dependencyMap[5];
defaultImport = importDefault(property);
destroyMonitor = defaultImport.destroyMonitor;
value2 = typeof destroyMonitor !== 'function';
if (!value2) {
property = dependencyMap[5];
defaultImport2 = importDefault(property);
destroyMonitor = defaultImport2.destroyMonitor;
videoElement = this.videoElement;
Reflect.apply(destroyMonitor, defaultImport2, [videoElement]);
}
this.isMonitoring = false;
} catch (error) {
binding = env1_5;
binding.error('Error destroying Mux monitor', error);
}
}
}
}
}
global.__d(_fun103483, 13607, [6, 7, 4, 13608, 13609, 13610,
2]) /* metro module 13607, dependencies: [6, 7, 4, 13608, 13609, 13610, 2] */;
@@ -1,11 +1,19 @@
/* Metro module 13613; source: modules/video-qoe/experiments/VideoQoEMetricsExperiment.tsx; dependencies: [1854, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ApexModule from '../../experiments/apex/index.tsx'; /* Metro dependency 1854 */
function _fun103992(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#103992, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13810:6, offset: 0x0227a9ab, size: 171 bytes, params: 8, frame: 22
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_0 = (require(1854) /* metro dependency 1854: apex */).createApexExperiment({'name': '2025-09-video-qoe-metrics-tracking',
const env0_0 = (ApexModule).createApexExperiment({'name': '2025-09-video-qoe-metrics-tracking',
'kind': 'user', defaultConfig: {externalAnalyticsEnabled: false},
variations: {[0]: {externalAnalyticsEnabled: false}, [1]: {externalAnalyticsEnabled: true}}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/video-qoe/experiments/VideoQoEMetricsExperiment.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/video-qoe/experiments/VideoQoEMetricsExperiment.tsx');
exports.getVideoQoEMetricsConfig = getVideoQoEMetricsConfig;
function getVideoQoEMetricsConfig({location}) { // fn#103993, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13810:425, offset: 0x00ebc6be, size: 34 bytes, params: 2, frame: 12
return env0_0.getConfig({location: location});
}
}
global.__d(_fun103992, 13613, [1854, 2]) /* metro module 13613, dependencies: [1854, 2] */;
+17 -7
View File
@@ -1,19 +1,29 @@
/* Metro module 13606; source: modules/video-qoe/index.tsx; dependencies: [2, 13607, 13611, 13609, 13612, 13608, 13613] */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as SimpleMuxWrapperModule from './SimpleMuxWrapper.tsx'; /* Metro dependency 13607 */
import * as SessionManagerModule from './utils/SessionManager.tsx'; /* Metro dependency 13608 */
import * as MuxIntegrationModule from './integrations/MuxIntegration.tsx'; /* Metro dependency 13609 */
import * as MobileMuxWrapperModule from './MobileMuxWrapper.tsx'; /* Metro dependency 13611 */
import * as MobileCustomMuxIntegrationModule from './integrations/MobileCustomMuxIntegration.tsx'; /* Metro dependency 13612 */
import * as VideoQoEMetricsExperimentModule from './experiments/VideoQoEMetricsExperiment.tsx'; /* Metro dependency 13613 */
function _fun103482(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#103482, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13796:6, offset: 0x0226b05b, size: 216 bytes, params: 8, frame: 17
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/video-qoe/index.tsx');
const SimpleMuxWrapper = (require(13607) /* metro dependency 13607: SimpleMuxWrapper */).SimpleMuxWrapper;
(FileImportTrackerModule).fileFinishedImporting('modules/video-qoe/index.tsx');
const SimpleMuxWrapper = (SimpleMuxWrapperModule).SimpleMuxWrapper;
exports.SimpleMuxWrapper = SimpleMuxWrapper;
const MobileMuxWrapper = (require(13611) /* metro dependency 13611: MobileMuxWrapper */).MobileMuxWrapper;
const MobileMuxWrapper = (MobileMuxWrapperModule).MobileMuxWrapper;
exports.MobileMuxWrapper = MobileMuxWrapper;
const MuxIntegration = (require(13609) /* metro dependency 13609: MuxIntegration */).MuxIntegration;
const MuxIntegration = (MuxIntegrationModule).MuxIntegration;
exports.MuxIntegration = MuxIntegration;
const MobileCustomMuxIntegration = (require(13612) /* metro dependency 13612: MobileCustomMuxIntegration */).MobileCustomMuxIntegration;
const MobileCustomMuxIntegration = (MobileCustomMuxIntegrationModule).MobileCustomMuxIntegration;
exports.MobileCustomMuxIntegration = MobileCustomMuxIntegration;
const SessionManager = (require(13608) /* metro dependency 13608: SessionManager */).SessionManager;
const SessionManager = (SessionManagerModule).SessionManager;
exports.SessionManager = SessionManager;
const getVideoQoEMetricsConfig = (require(13613) /* metro dependency 13613: VideoQoEMetricsExperiment */).getVideoQoEMetricsConfig;
const getVideoQoEMetricsConfig = (VideoQoEMetricsExperimentModule).getVideoQoEMetricsConfig;
exports.getVideoQoEMetricsConfig = getVideoQoEMetricsConfig;
}
global.__d(_fun103482, 13606, [2, 13607, 13611, 13609, 13612, 13608,
13613]) /* metro module 13606, dependencies: [2, 13607, 13611, 13609, 13612, 13608, 13613] */;
File diff suppressed because it is too large. Load diff
@@ -1,68 +1,75 @@
/* Metro module 13609; source: modules/video-qoe/integrations/MuxIntegration.tsx; dependencies: [6, 7, 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 * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun103494(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#103494, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13799:6, offset: 0x0226b5f0, size: 126 bytes, params: 8, frame: 18
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_0 = importDefault(6) /* metro dependency 6 */;
const env0_1 = importDefault(7) /* metro dependency 7 */;
const value = _fun103495();
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/video-qoe/integrations/MuxIntegration.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/video-qoe/integrations/MuxIntegration.tsx');
exports.MuxIntegration = value;
}
function _fun103495() { // fn#103495, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13799:118, offset: 0x0226b66e, size: 114 bytes, params: 1, frame: 16
return env0_1(MuxIntegration, null, [{key: 'mapDiscordToMuxMetadata', value: value_103497}, {key: 'getAppVersion',
value: function() {
return '5867';
}}, {key: 'getBuildChannel', value: function() {
var r2;
var r0;
var property;
var value2;
var value3;
var error;
var value = undefined;
try {
property = global.window;
property = property.GLOBAL_ENV;
value2 = property == null;
if (value2) {
r2 = value;
} else {
property = property.RELEASE_CHANNEL;
r2 = property;
function _fun103495() { // fn#103495, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13799:118, offset: 0x0226b66e, size: 114 bytes, params: 1, frame: 16
return CreateClass(MuxIntegration, null, [{key: 'mapDiscordToMuxMetadata', value: value_103497}, {key: 'getAppVersion',
value: function() {
return '5867';
}}, {key: 'getBuildChannel', value: function() {
var r2;
var r0;
var property;
var value2;
var value3;
var error;
var value = undefined;
try {
property = global.window;
property = property.GLOBAL_ENV;
value2 = property == null;
if (value2) {
r2 = value;
} else {
property = property.RELEASE_CHANNEL;
r2 = property;
}
value = r2 != null;
value3 = 'stable';
r0 = value ? r2 : value3;
} catch (error) {
return 'stable';
}
value = r2 != null;
value3 = 'stable';
r0 = value ? r2 : value3;
} catch (error) {
return 'stable';
return r0;
}}]);
function MuxIntegration() { // fn#103496, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13799:139, offset: 0x00da1b5f, size: 27 bytes, params: 1, frame: 13
env1_0(this, MuxIntegration);
}
return r0;
}}]);
}
}
function value_103497(a0, a1) { // fn#103497, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13799:233, offset: 0x0226b6e0, size: 330 bytes, params: 3, frame: 15
const object2 = {'env_key': '1qd16mdmdjasipqg3irobln4u', 'session_id': null, 'player_name': 'discord',
const object = {'env_key': '1qd16mdmdjasipqg3irobln4u', 'session_id': null, 'player_name': 'discord',
'player_version': '1.0.0'};
object2.session_id = a1;
object2.video_id = a0.contentMetadata.contentId;
object2.video_title = a0.contentMetadata.title;
object2.video_duration = a0.contentMetadata.durationMs ?? (a0.contentMetadata.durationSec != null ? 1000 * a0.contentMetadata.durationSec : undefined);
object2.video_content_type = a0.contentMetadata.contentType;
object2.video_series = a0.contentMetadata.questId;
object2.video_producer = a0.contentMetadata.gameId;
object2.video_brand = a0.contentMetadata.gameName ?? 'Discord';
object2.video_cdn = 'Cloudflare';
object2.video_stream_type = a0.contentMetadata.videoStreamType;
object2.view_client_application_name = this.getBuildChannel();
object2.view_client_application_version = this.getAppVersion();
object.session_id = a1;
object.video_id = a0.contentMetadata.contentId;
object.video_title = a0.contentMetadata.title;
object.video_duration = a0.contentMetadata.durationMs ?? (a0.contentMetadata.durationSec != null ? 1000 * a0.contentMetadata.durationSec : undefined);
object.video_content_type = a0.contentMetadata.contentType;
object.video_series = a0.contentMetadata.questId;
object.video_producer = a0.contentMetadata.gameId;
object.video_brand = a0.contentMetadata.gameName ?? 'Discord';
object.video_cdn = 'Cloudflare';
object.video_stream_type = a0.contentMetadata.videoStreamType;
object.view_client_application_name = this.getBuildChannel();
object.view_client_application_version = this.getAppVersion();
let userContext = a0.userContext;
value = undefined;
const userId = userContext == null ? value : userContext.userId;
object2.viewer_user_id = userId;
object.viewer_user_id = userId;
userContext = a0.userContext;
const userTier = userContext == null ? value : userContext.userTier;
object2.viewer_plan = userTier;
return object2;
object.viewer_plan = userTier;
return object;
}
global.__d(_fun103494, 13609, [6, 7, 2]) /* metro module 13609, dependencies: [6, 7, 2] */;
@@ -1,17 +1,24 @@
/* Metro module 13608; source: modules/video-qoe/utils/SessionManager.tsx; dependencies: [6, 7, 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 * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun103490(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#103490, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13798:6, offset: 0x0226b4d6, size: 126 bytes, params: 8, frame: 18
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_0 = importDefault(6) /* metro dependency 6 */;
const env0_1 = importDefault(7) /* metro dependency 7 */;
const value = _fun103491();
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/video-qoe/utils/SessionManager.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/video-qoe/utils/SessionManager.tsx');
exports.SessionManager = value;
function _fun103491() { // fn#103491, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13798:118, offset: 0x0226b554, size: 62 bytes, params: 1, frame: 15
return CreateClass(SessionManager, null, [{key: 'generateSessionId', value: function() {
return 'discord-video-' + global.Date.now() + '-' + global.Math.random().toString(36).substr(2, 9);
}}]);
function SessionManager() { // fn#103492, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13798:139, offset: 0x00da1b5f, size: 27 bytes, params: 1, frame: 13
env1_0(this, SessionManager);
}
}
}
function _fun103491() { // fn#103491, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13798:118, offset: 0x0226b554, size: 62 bytes, params: 1, frame: 15
return env0_1(SessionManager, null, [{key: 'generateSessionId', value: function() {
return 'discord-video-' + global.Date.now() + '-' + global.Math.random().toString(36).substr(2, 9);
}}]);
}
global.__d(_fun103490, 13608, [6, 7, 2]) /* metro module 13608, dependencies: [6, 7, 2] */;