The options for adding videos to the grid.
A promise that resolves when the grid has been updated successfully.
import { addVideosGrid } from 'mediasfu-reactnative-expo';
const options = {
mainGridStreams: mainGridStreams,
altGridStreams: altGridStreams,
numtoadd: numtoadd,
numRows: numRows,
numCols: numCols,
actualRows: actualRows,
lastrowcols: lastrowcols,
removeAltGrid: removeAltGrid,
parameters: {
eventType: eventType,
updateAddAltGrid: updateAddAltGrid,
ref_participants: ref_participants,
islevel: islevel,
videoAlreadyOn: videoAlreadyOn,
localStreamVideo: localStreamVideo,
keepBackground: keepBackground,
virtualStream: virtualStream,
forceFullDisplay: forceFullDisplay,
otherGridStreams: otherGridStreams,
updateOtherGridStreams: updateOtherGridStreams,
updateMiniCardsGrid: updateMiniCardsGrid,
getUpdatedAllParams: getUpdatedAllParams,
},
};
addVideosGrid(options)
.then(() => {
console.log('Videos grid updated successfully');
})
.catch((error) => {
console.error('Error updating videos grid:', error);
});
Adds participants to the main and alternate video grids based on the provided parameters.