Function reUpdateInter

  • Updates the interaction state based on the provided options and parameters.

    Parameters

    Returns Promise<void>

    A promise that resolves when the interaction update is complete.

    Throws an error if there is an issue during the updating process.

    await reUpdateInter({
    name: 'participant1',
    add: true,
    parameters: {
    screenPageLimit: 4,
    itemPageLimit: 2,
    reorderInterval: 500,
    fastReorderInterval: 200,
    eventType: 'conference',
    participants: [...],
    allVideoStreams: [...],
    shared: false,
    shareScreenStarted: false,
    adminNameStream: 'Admin',
    screenShareNameStream: 'Screen Share',
    updateMainWindow: true,
    sortAudioLoudness: false,
    lastReorderTime: Date.now(),
    newLimitedStreams: [],
    newLimitedStreamsIDs: [],
    oldSoundIds: [],
    updateUpdateMainWindow: (value) => { console.log('your logic') },
    updateSortAudioLoudness: (value) => { console.log('your logic') },
    updateLastReorderTime: (value) => { console.log('your logic') },
    updateNewLimitedStreams: (streams) => { console.log('your logic') },
    updateNewLimitedStreamsIDs: (ids) => { console.log('your logic') },
    updateOldSoundIds: (ids) => { console.log('your logic') },
    onScreenChanges: async (options) => { console.log('your logic') },
    reorderStreams: async (options) => { console.log('your logic') },
    changeVids: async (options) => { console.log('your logic') },
    },
    });