decord/alpha/source/modules/calls/native/VideoBackgroundManager.tsx
2026-10-12 06:59:38 +00:00

30 lines
1.3 KiB
TypeScript

// Module ID: 8377
// Function ID: 8378
// Name: VideoBackgroundManager
// Dependencies: [2116, 6808, 2]
// Module 8377 (VideoBackgroundManager)
import SelectedChannelStore from "SelectedChannelStore" /* 2116 */;
import AutomaticLifecycleManager from "AutomaticLifecycleManager" /* 6808 */;
import size from "module_2" /* 2 */;
class VideoBackgroundManager extends AutomaticLifecycleManager {
constructor() {
const applyArgumentsResult = HermesBuiltin.applyArguments(this, new.target);
applyArgumentsResult.previousSelectedVoiceChannelId = SelectedChannelStore.getVoiceChannelId();
applyArgumentsResult.cachedDominantColors = {};
applyArgumentsResult._handleSelectVoiceChannel = function _handleSelectVoiceChannel(channelId) {
channelId = channelId.channelId;
if (applyArgumentsResult.previousSelectedVoiceChannelId !== channelId) {
applyArgumentsResult.cachedDominantColors = {};
}
applyArgumentsResult.previousSelectedVoiceChannelId = channelId;
};
applyArgumentsResult.actions = { VOICE_CHANNEL_SELECT: applyArgumentsResult._handleSelectVoiceChannel };
return applyArgumentsResult;
}
}
const videoBackgroundManager = new VideoBackgroundManager();
const result = size.fileFinishedImporting("modules/calls/native/VideoBackgroundManager.tsx");
export default videoBackgroundManager;