MediaSFU React Native
    Preparing search index...

    Function generatePageContent

    • Generates the content for a specific page.

      Parameters

      Returns Promise<void>

      A promise that resolves when the content generation is complete.

      Throws an error if content generation fails.

      const options = {
      page: 1,
      parameters: {
      paginatedStreams: [[stream1, stream2], [stream3, stream4]], // Example paginated streams
      currentUserPage: 0,
      updateMainWindow: true,
      updateCurrentUserPage: (page) => console.log('Current user page updated to:', page),
      updateUpdateMainWindow: (flag) => console.log('Main window update flag:', flag),
      dispStreams: async ({ lStreams, ind }) => {
      console.log(`Displaying streams for page ${ind}:`, lStreams);
      },
      },
      breakRoom: 1,
      inBreakRoom: false,
      };

      generatePageContent(options)
      .then(() => {
      console.log('Page content generated successfully');
      })
      .catch((error) => {
      console.error('Error generating page content:', error);
      });