react-jitsi
react-jitsi copied to clipboard
countryNotSupported: "We do not support this destination yet."
import React, { useState } from 'react'
import Jitsi from 'react-jitsi'
const App = () => {
const [displayName, setDisplayName] = useState('')
const [roomName, setRoomName] = useState('')
const [password, setPassword] = useState('')
const [onCall, setOnCall] = useState(false)
return onCall
? (
<Jitsi
roomName={roomName}
displayName={displayName}
password={password}
onAPILoad={JitsiMeetAPI => console.log('Good Morning everyone!')}
/>)
: (
<>
<h1>Crate a Meeting</h1>
<input type='text' placeholder='Room name' value={roomName} onChange={e => setRoomName(e.target.value)} />
<input type='text' placeholder='Your name' value={displayName} onChange={e => setDisplayName(e.target.value)} />
<button onClick={() => setOnCall(true)}> Let's start!</button>
</>
)
}
export default App;
where to add country region my country is INDIA or any other country how to add like countryCode: nl