Function onScreenChanges

  • Handles changes in screen events such as broadcast, chat, and conference.

    Parameters

    Returns Promise<void>

    A promise that resolves when the screen changes have been handled.

    Throws an error if there is an issue handling screen changes.

    await onScreenChanges({
    changed: true,
    parameters: {
    eventType: 'conference',
    shareScreenStarted: false,
    shared: false,
    addForBasic: false,
    updateMainHeightWidth: (height) => console.log('Updated height:', height),
    updateAddForBasic: (value) => console.log('Updated addForBasic:', value),
    itemPageLimit: 2,
    updateItemPageLimit: (limit) => console.log('Updated item page limit:', limit),
    reorderStreams: async (options) => console.log('Reordered streams with options:', options),
    },
    });