decord/source/modules/voice_calls/VoicePermissionManager.tsx
2026-07-27 11:26:19 +00:00

61 lines
2.2 KiB
TypeScript

// Module ID: 16062
// Function ID: 124204
// Name: _isNativeReflectConstruct
// Dependencies: [6, 7, 15, 17, 18, 4955, 4148, 1194, 1348, 4178, 4203, 653, 4345, 4676, 16063, 4315, 5078, 2]
// Module 16062 (_isNativeReflectConstruct)
import _isNativeReflectConstruct from "_isNativeReflectConstruct";
import closure_4 from "_isNativeReflectConstruct";
import getAudienceRequestToSpeakState from "getAudienceRequestToSpeakState";
import set from "set";
import _inherits from "_inherits";
import closure_8 from "_isNativeReflectConstruct";
import closure_9 from "_isNativeReflectConstruct";
import closure_10 from "_isNativeReflectConstruct";
import closure_11 from "_isNativeReflectConstruct";
import closure_12 from "_isNativeReflectConstruct";
import closure_13 from "_isNativeReflectConstruct";
import { InputModes } from "ME";
import { NativePermissionTypes } from "NativePermissionStatus";
import tmp2 from "AutomaticLifecycleManager";
const require = arg1;
function _isNativeReflectConstruct() {
let closure_0 = !valueOf.call(Reflect.construct(Boolean, [], () => {
}));
function _isNativeReflectConstruct() {
return closure_0;
}
const result = _isNativeReflectConstruct();
}
function voicePermissionRequest() {
const permission = importDefault(4676).requestPermission(NativePermissionTypes.AUDIO);
permission.then((arg0) => {
if (arg0) {
outer1_1(outer1_2[14])(true);
}
});
if (mode.getMode() === InputModes.PUSH_TO_TALK) {
const permission1 = importDefault(4676).requestPermission(NativePermissionTypes.INPUT_MONITORING);
const obj2 = importDefault(4676);
}
}
function shouldImmediatelyRequestVoicePermissions(id, id2) {
channel = channel.getChannel(id2);
let isListenModeCapableResult;
if (null != channel) {
isListenModeCapableResult = channel.isListenModeCapable();
}
let isSpeakerResult = !isListenModeCapableResult;
if (!isSpeakerResult) {
isSpeakerResult = speaker.isSpeaker(id, id2);
}
return isSpeakerResult;
}
let c16 = null;
tmp2 = new tmp2();
let result = require("_possibleConstructorReturn").fileFinishedImporting("modules/voice_calls/VoicePermissionManager.tsx");
export default tmp2;
export { shouldImmediatelyRequestVoicePermissions };