MediaSFU Angular
    Preparing search index...

    Class CompareScreenStates

    Compares the current screen states with the previous screen states and triggers actions based on changes.

    The options for comparing screen states.

    Whether to restart the comparison process.

    The parameters for the comparison.

    Function to get updated parameters.

    The type of display being recorded.

    Whether the recording is optimized for video.

    The current screen states.

    The previous screen states.

    The active names in the current context.

    Function to trigger actions based on changes.

    A promise that resolves when the comparison and any triggered actions are complete.

    Will log an error message if an error occurs during the comparison process.

    const options = {
    restart: false,
    parameters: {
    getUpdatedAllParams: () => { /* Logic to get updated parameters */ },
    recordingDisplayType: 'video',
    recordingVideoOptimized: true,
    screenStates: [{ state: 'active' }, { state: 'inactive' }],
    prevScreenStates: [{ state: 'inactive' }, { state: 'active' }],
    activeNames: ['Alice', 'Bob'],
    trigger: async (data) => { /* Logic to handle the trigger */ },
    },
    };

    await compareScreenStatesService.compareScreenStates(options);
    // If any screen state has changed, the trigger function will be called accordingly.
    Index

    Constructors

    Methods

    Constructors

    Methods