decord/source/modules/external_pip/useExternalPipEnabler.android.tsx

40 lines
1.5 KiB
TypeScript
Raw Normal View History

2026-08-05 07:35:12 +00:00
// Module ID: 15926
// Function ID: 15927
2026-07-20 16:05:17 +00:00
// Name: useExternalPIPEnabler
2026-08-05 07:35:12 +00:00
// Dependencies: [4268, 1218, 4326, 589, 15927, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-05 07:35:12 +00:00
// Module 15926 (useExternalPIPEnabler)
2026-07-29 08:29:29 +00:00
import getParticipants from "getParticipants";
import fetchFingerprint from "fetchFingerprint";
import createRTCConnection from "createRTCConnection";
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-07-29 08:29:29 +00:00
const result = require("createRTCConnection").fileFinishedImporting("modules/external_pip/useExternalPipEnabler.android.tsx");
2026-07-20 16:05:17 +00:00
export default function useExternalPIPEnabler(disabled) {
disabled = disabled.disabled;
2026-07-29 08:29:29 +00:00
const items = [getParticipants, createRTCConnection, fetchFingerprint];
2026-07-20 16:05:17 +00:00
const items1 = [disabled];
2026-07-29 08:29:29 +00:00
return disabled(589).useStateFromStoresObject(items, () => {
2026-07-23 10:11:24 +00:00
const channelId = outer1_4.getChannelId();
2026-07-20 16:05:17 +00:00
if (null != channelId) {
if (!disabled) {
2026-07-29 08:29:29 +00:00
let obj = outer1_2;
2026-07-23 10:11:24 +00:00
const videoParticipants = outer1_2.getVideoParticipants(channelId);
2026-07-29 08:29:29 +00:00
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);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj = {};
2026-07-23 10:11:24 +00:00
const merged = Object.assign(disabled(outer1_1[4]).DEFAULT_STATE);
2026-07-29 08:29:29 +00:00
obj.externalPipEnabled = tmp2;
2026-07-20 16:05:17 +00:00
return obj;
}
}
2026-07-23 10:11:24 +00:00
return disabled(outer1_1[4]).DEFAULT_STATE;
2026-07-20 16:05:17 +00:00
}, items1);
};