Skip to content
This repository has been archived by the owner on Oct 18, 2024. It is now read-only.

Commit

Permalink
feat: add collaboration flag
Browse files Browse the repository at this point in the history
  • Loading branch information
carlossantos74 committed Dec 11, 2023
1 parent 3a34ef4 commit 3d3f0f9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/video/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ export class VideoConference extends BaseComponent {
locales: this.params?.locales ?? [],
avatars: this.params?.avatars ?? [],
customColors: config.get<ColorsVariables>('colors'),
collaborationMode: true,
collaborationMode: this.params?.collaborationMode?.enabled ?? true,
layoutPosition:
(this.params?.collaborationMode?.modalPosition as LayoutPosition) ?? LayoutPosition.CENTER,
layoutMode: (this.params?.collaborationMode?.initialView as LayoutMode) ?? LayoutMode.LIST,
Expand Down
1 change: 1 addition & 0 deletions src/components/video/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export interface VideoComponentOptions {
userType?: ParticipantType | `${ParticipantType}`;
participantType?: ParticipantType | `${ParticipantType}`;
collaborationMode?: {
enabled?: boolean;
position?: CamerasPosition | `${CamerasPosition}`;
modalPosition?: LayoutPosition | `${LayoutPosition}`;
initialView?: LayoutMode | `${LayoutMode}`;
Expand Down

0 comments on commit 3d3f0f9

Please sign in to comment.