decord/source/modules/external_pip/useExternalPipEnabler.android.tsx
2026-08-05 07:35:12 +00:00

39 lines
1.5 KiB
TypeScript

// Module ID: 15926
// Function ID: 15927
// Name: useExternalPIPEnabler
// Dependencies: [4268, 1218, 4326, 589, 15927, 2]
// Exports: default
// Module 15926 (useExternalPIPEnabler)
import getParticipants from "getParticipants";
import fetchFingerprint from "fetchFingerprint";
import createRTCConnection from "createRTCConnection";
const require = arg1;
const result = require("createRTCConnection").fileFinishedImporting("modules/external_pip/useExternalPipEnabler.android.tsx");
export default function useExternalPIPEnabler(disabled) {
disabled = disabled.disabled;
const items = [getParticipants, createRTCConnection, fetchFingerprint];
const items1 = [disabled];
return disabled(589).useStateFromStoresObject(items, () => {
const channelId = outer1_4.getChannelId();
if (null != channelId) {
if (!disabled) {
let obj = outer1_2;
const videoParticipants = outer1_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(outer1_1[4]).DEFAULT_STATE);
obj.externalPipEnabled = tmp2;
return obj;
}
}
return disabled(outer1_1[4]).DEFAULT_STATE;
}, items1);
};