decord/source/modules/voice_calls/VoicePermissionManager.tsx

62 lines
2.2 KiB
TypeScript
Raw Normal View History

2026-07-27 11:26:19 +00:00
// Module ID: 16062
// Function ID: 124204
2026-07-20 16:05:17 +00:00
// Name: _isNativeReflectConstruct
2026-07-27 11:26:19 +00:00
// Dependencies: [6, 7, 15, 17, 18, 4955, 4148, 1194, 1348, 4178, 4203, 653, 4345, 4676, 16063, 4315, 5078, 2]
2026-07-20 16:05:17 +00:00
2026-07-27 11:26:19 +00:00
// Module 16062 (_isNativeReflectConstruct)
2026-07-23 10:11:24 +00:00
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;
2026-07-20 16:05:17 +00:00
function _isNativeReflectConstruct() {
let closure_0 = !valueOf.call(Reflect.construct(Boolean, [], () => {
}));
function _isNativeReflectConstruct() {
return closure_0;
}
const result = _isNativeReflectConstruct();
}
function voicePermissionRequest() {
2026-07-25 08:10:48 +00:00
const permission = importDefault(4676).requestPermission(NativePermissionTypes.AUDIO);
2026-07-20 16:05:17 +00:00
permission.then((arg0) => {
if (arg0) {
2026-07-23 10:11:24 +00:00
outer1_1(outer1_2[14])(true);
2026-07-20 16:05:17 +00:00
}
});
if (mode.getMode() === InputModes.PUSH_TO_TALK) {
2026-07-25 08:10:48 +00:00
const permission1 = importDefault(4676).requestPermission(NativePermissionTypes.INPUT_MONITORING);
const obj2 = importDefault(4676);
2026-07-20 16:05:17 +00:00
}
}
function shouldImmediatelyRequestVoicePermissions(id, id2) {
2026-07-23 10:11:24 +00:00
channel = channel.getChannel(id2);
2026-07-20 16:05:17 +00:00
let isListenModeCapableResult;
if (null != channel) {
isListenModeCapableResult = channel.isListenModeCapable();
}
let isSpeakerResult = !isListenModeCapableResult;
if (!isSpeakerResult) {
isSpeakerResult = speaker.isSpeaker(id, id2);
}
return isSpeakerResult;
}
2026-07-23 10:11:24 +00:00
let c16 = null;
2026-07-20 16:05:17 +00:00
tmp2 = new tmp2();
2026-07-23 10:11:24 +00:00
let result = require("_possibleConstructorReturn").fileFinishedImporting("modules/voice_calls/VoicePermissionManager.tsx");
2026-07-20 16:05:17 +00:00
export default tmp2;
export { shouldImmediatelyRequestVoicePermissions };