This file contains hidden or 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 json | |
from time import sleep | |
from opentelemetry.exporter.otlp.proto.http.trace_exporter import OTLPSpanExporter | |
from opentelemetry.sdk.trace.export import SimpleSpanProcessor | |
from dotenv import load_dotenv | |
from opentelemetry.sdk import trace as trace_sdk | |
from opentelemetry import trace as trace_api | |
from opentelemetry import trace | |
import os | |
from openai import OpenAI |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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', |
NewerOlder