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

39 lines
1.5 KiB
TypeScript
Raw Normal View History

2026-07-23 10:11:24 +00:00
// Module ID: 15683
// Function ID: 120937
2026-07-20 16:05:17 +00:00
// Name: useExternalPIPEnabler
2026-07-23 10:11:24 +00:00
// Dependencies: [4143, 1194, 4202, 566, 15684, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-07-23 10:11:24 +00:00
// Module 15683 (useExternalPIPEnabler)
import _isNativeReflectConstruct from "_isNativeReflectConstruct";
import closure_3 from "_isNativeReflectConstruct";
import closure_4 from "_isNativeReflectConstruct";
const require = arg1;
const result = require("_isNativeReflectConstruct").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-23 10:11:24 +00:00
const items = [_isNativeReflectConstruct, closure_4, closure_3];
2026-07-20 16:05:17 +00:00
const items1 = [disabled];
2026-07-23 10:11:24 +00:00
return disabled(566).useStateFromStoresObject(items, () => {
const channelId = outer1_4.getChannelId();
2026-07-20 16:05:17 +00:00
if (null != channelId) {
if (!disabled) {
2026-07-23 10:11:24 +00:00
const videoParticipants = outer1_2.getVideoParticipants(channelId);
2026-07-20 16:05:17 +00:00
let tmp3 = videoParticipants.filter((localVideoDisabled) => !localVideoDisabled.localVideoDisabled).length > 0;
if (!tmp3) {
2026-07-23 10:11:24 +00:00
const streamParticipants = outer1_2.getStreamParticipants(channelId);
const found = streamParticipants.filter((user) => user.user.id !== outer2_3.getId());
2026-07-20 16:05:17 +00:00
tmp3 = null != found.find((streamId) => null != streamId.streamId);
}
const obj = {};
2026-07-23 10:11:24 +00:00
const merged = Object.assign(disabled(outer1_1[4]).DEFAULT_STATE);
2026-07-20 16:05:17 +00:00
obj["externalPipEnabled"] = tmp3;
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);
};