This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { useDyteMeeting, useDyteSelector } from '@dytesdk/react-web-core'; | |
import { | |
DyteAudioVisualizer, | |
DyteParticipantTile, | |
DyteNameTag, | |
DyteAvatar, | |
DyteMeetingTitle, | |
DyteClock, | |
DyteMicToggle, | |
DyteCameraToggle, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { useEffect, useState } from 'react'; | |
import { useDyteClient } from '@dytesdk/react-web-core'; | |
import { DyteUIBuilder, DyteMeeting } from '@dytesdk/react-ui-kit'; | |
function App() { | |
const [meeting, initMeeting] = useDyteClient({ resetOnLeave: true }); | |
const [uiConfig, setUiConfig] = useState<any>(); | |
const url = new URL(window.location.href); | |
const queryToken = url.searchParams.get('authToken'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { useCallback, useEffect } from 'react'; | |
import { useDyteClient } from '@dytesdk/react-web-core'; | |
import { | |
DyteCameraToggle, | |
DyteControlbarButton, | |
DyteDialogManager, | |
DyteGrid, | |
DyteLeaveButton, | |
DyteMicToggle, | |
DyteParticipantsAudio, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { useEffect } from 'react'; | |
import { | |
DyteProvider, | |
useDyteClient, | |
useDyteMeeting, | |
useDyteSelector, | |
} from '@dytesdk/react-web-core'; | |
import { DytePluginMain, DytePlugins } from '@dytesdk/react-ui-kit'; | |
function PluginApp() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { BreakoutRoomsManager } from '@dytesdk/ui-kit'; | |
import DyteClient from '@dytesdk/web-core'; | |
class BreakoutRooms { | |
private manager: BreakoutRoomsManager; | |
private meeting: DyteClient; | |
constructor(meeting: DyteClient) { | |
this.manager = new BreakoutRoomsManager(); | |
this.meeting = meeting; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* required packages | |
* "@dytesdk/react-ui-kit": "^1.64.0", | |
* "@dytesdk/react-web-core": "^1.35.20", | |
*/ | |
import { useEffect } from 'react'; | |
import { useDyteClient } from '@dytesdk/react-web-core'; | |
import { DyteBreakoutRoomsToggle, DyteDialogManager, DyteGrid } from '@dytesdk/react-ui-kit'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { useEffect, useState } from 'react'; | |
import { useDyteClient } from '@dytesdk/react-web-core'; | |
import { DyteMeeting, DyteUIBuilder, generateConfig } from '@dytesdk/react-ui-kit'; | |
type UIConfig = ReturnType<typeof generateConfig>['config']; | |
function DisableControlsAddonApp() { | |
const [meeting, initMeeting] = useDyteClient(); | |
const [uiConfig, setUIConfig] = useState<UIConfig>(); | |
const url = new URL(window.location.href); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { useEffect } from 'react'; | |
import { useDyteClient } from '@dytesdk/react-web-core'; | |
import { | |
DyteCameraToggle, | |
DyteControlbarButton, | |
DyteMicToggle, | |
DyteParticipantTile, | |
defaultIconPack, | |
} from '@dytesdk/react-ui-kit'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { useEffect, useState } from 'react'; | |
import DyteClient from '@dytesdk/web-core'; | |
import { DyteMeeting, registerAddons } from '@dytesdk/react-ui-kit'; | |
import VideoBackgroundAddon from '@dytesdk/ui-kit-addons/video-background'; | |
const videoBackground = new VideoBackgroundAddon({ | |
modes: ['blur', 'virtual'], | |
images: [ | |
'https://images.unsplash.com/photo-1487088678257-3a541e6e3922?q=80&w=2874&auto=format&fit=crop&ixlib=rb-4.0.3', | |
'https://images.unsplash.com/photo-1496715976403-7e36dc43f17b?q=80&w=2848&auto=format&fit=crop&ixlib=rb-4.0.3', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { useDyteSelector } from '@dytesdk/react-web-core'; | |
import { useEffect, useRef, useState } from 'react'; | |
const addZero = (n: number) => Math.trunc(n).toString().padStart(2, '0'); | |
export default function MeetingTimer() { | |
const [time, setTime] = useState(''); | |
const timerId = useRef<number>(); | |
const timestamp = useDyteSelector((meeting) => meeting.meta.meetingStartedTimestamp); |
NewerOlder