Hiyve Components - v1.0.0
    Preparing search index...

    Function createPresentationLayout

    • Creates a presentation layout handler with configurable options.

      Parameters

      Returns CustomLayoutHandler

      A CustomLayoutHandler function

      The presentation layout places the dominant speaker (or the local user if no dominant speaker is set) in a large main area. Other participants appear as small thumbnails in a horizontal row at the bottom of the container.

      import { VideoGrid } from '@hiyve/react-ui';
      import { createPresentationLayout } from '@hiyve/react-ui';

      const presentationLayout = createPresentationLayout({ thumbnailHeight: 120 });

      <VideoGrid
      layout="presentation"
      customLayoutHandler={presentationLayout}
      />