Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,65 @@
|
||||
/* Metro module 10681; source: modules/errors/hooks/useVideoReadyTimeout.tsx; dependencies: [31, 672, 4041, 10680, 4406, 10682, 10685, 2] */
|
||||
function _fun82121(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#82121, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10867:6, offset: 0x01eec051, size: 152 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = importAll(31) /* metro dependency 31 */;
|
||||
const Millis = (importDefault(672) /* metro dependency 672: Durations */).Millis;
|
||||
const SECOND = Millis.SECOND;
|
||||
const env0_3 = 20 * SECOND;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/errors/hooks/useVideoReadyTimeout.tsx');
|
||||
exports.default = useVideoReadyTimeout;
|
||||
}
|
||||
|
||||
function useVideoReadyTimeout({streamId, userId, videoSpinnerContext, streamKey, loading, paused}) { // fn#82122, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10867:222, offset: 0x01eec0e9, size: 363 bytes, params: 2, frame: 24
|
||||
const MediaEngineContextTypes = (require(4406) /* metro dependency 4406: mediaEngine */).MediaEngineContextTypes;
|
||||
const env0_2 = streamKey;
|
||||
paused = !(paused === undefined) && paused;
|
||||
let binding = env0_2;
|
||||
const useRef = binding.useRef;
|
||||
const Timeout = (require(4041) /* metro dependency 4041: Timers */).Timeout;
|
||||
const value2 = Object.create(Timeout.prototype, {constructor: {value: Timeout}});
|
||||
const timeout = new Timeout();
|
||||
const env0_5 = Reflect.apply(useRef, binding, [timeout instanceof Object ? timeout : value2]);
|
||||
const VideoSpinnerContext = (require(10680) /* metro dependency 10680: VideoSpinnerTimer */).VideoSpinnerContext;
|
||||
const SELF_STREAM = VideoSpinnerContext.SELF_STREAM;
|
||||
const r5 = videoSpinnerContext === SELF_STREAM || videoSpinnerContext === VideoSpinnerContext.REMOTE_STREAM ? MediaEngineContextTypes.STREAM : MediaEngineContextTypes.DEFAULT;
|
||||
binding = env0_2;
|
||||
binding.useEffect(_fun82123, [paused, streamId, loading, r5, streamKey, userId]);
|
||||
const useCallback = binding.useCallback;
|
||||
return {onReady: Reflect.apply(useCallback, binding, [_fun82126, [userId, r5]])};
|
||||
}
|
||||
|
||||
function _fun82123() { // fn#82123, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10867:560, offset: 0x01eec254, size: 111 bytes, params: 1, frame: 15
|
||||
var environment;
|
||||
var value2;
|
||||
var WindowVisibilityVideoManager;
|
||||
var current;
|
||||
if (loading) {
|
||||
if (paused) {
|
||||
return undefined;
|
||||
}
|
||||
value2 = environment.__proto__;
|
||||
WindowVisibilityVideoManager = (require(10682) /* metro dependency 10682: WindowVisibilityVideoManager */).WindowVisibilityVideoManager;
|
||||
if (WindowVisibilityVideoManager.isIncomingVideoEnabled()) {
|
||||
current = env0_5.current;
|
||||
current.start(env1_3, _fun82124);
|
||||
return function() {
|
||||
current.stop();
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function _fun82126() { // fn#82126, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10867:774, offset: 0x01eec313, size: 69 bytes, params: 1, frame: 14
|
||||
env0_5.current.stop();
|
||||
const videoStreamReadyActionCreatorsModule = require(10685) /* metro dependency 10685: VideoStreamReadyActionCreators */;
|
||||
videoStreamReadyActionCreatorsModule.clearVideoStreamTimeout(env0_6, userId);
|
||||
}
|
||||
|
||||
function _fun82124() { // fn#82124, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10867:672, offset: 0x01eec2c3, size: 59 bytes, params: 1, frame: 18
|
||||
let value = environment.__proto__.__proto__;
|
||||
value = require(10685) /* metro dependency 10685: VideoStreamReadyActionCreators */;
|
||||
value.videoStreamTimedOut(streamId, userId, env1_6, streamKey);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user