decord/source/modules/external_pip/useExternalPipEnabler.android.tsx
github-actions 7450227d0b chore: update source for alpha 345.4
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9596_m.js (380.6 MB)
2026-09-04 17:41:35 +00:00

39 lines
1.5 KiB
TypeScript

// Module ID: 16923
// Function ID: 16924
// Name: useExternalPIPEnabler
// Dependencies: [4497, 1215, 4557, 586, 16924, 2]
// Exports: default
// Module 16923 (useExternalPIPEnabler)
import closure_2 from "getParticipants" /* 4497 */;
import closure_3 from "fetchFingerprint" /* 1215 */;
import closure_4 from "createRTCConnection" /* 4557 */;
const require = arg1;
const result = require("set").fileFinishedImporting("modules/external_pip/useExternalPipEnabler.android.tsx");
export default function useExternalPIPEnabler(disabled) {
disabled = disabled.disabled;
const items = [closure_2, closure_4, closure_3];
const items1 = [disabled];
return disabled(586).useStateFromStoresObject(items, () => {
const channelId = closure_1_4.getChannelId();
if (null != channelId) {
if (!disabled) {
let obj = closure_1_2;
const videoParticipants = closure_1_2.getVideoParticipants(channelId);
let tmp2 = videoParticipants.filter((localVideoDisabled) => !localVideoDisabled.localVideoDisabled).length > 0;
if (!tmp2) {
const streamParticipants = obj.getStreamParticipants(channelId);
const found = streamParticipants.filter((user) => user.user.id !== id.getId());
tmp2 = null != found.find((streamId) => null != streamId.streamId);
}
obj = {};
const merged = Object.assign(disabled(closure_1_1[4]).DEFAULT_STATE);
obj.externalPipEnabled = tmp2;
return obj;
}
}
return disabled(closure_1_1[4]).DEFAULT_STATE;
}, items1);
};