We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I made a custom component and I use it in my 2 user side. But getting this error.
My code block is,
` import {IAgoraCredentials} from '@/pages/lawyer/video-call'; import {Button} from '@mui/material'; import AgoraUIKit from 'agora-react-uikit'; import {useState} from 'react'; const VideoWithUIKit = ({credentials}: {credentials: IAgoraCredentials}) => { const [videoCall, setVideoCall] = useState(false); const rtcProps = { appId: credentials?.APP_ID, channel: credentials?.CHANNEL, // your agora channel token: credentials?.TOKEN, // use null or skip if using app in testing mode }; const callbacks = { EndCall: () => setVideoCall(false), }; return videoCall ? ( <div style={{display: 'flex', width: '100vw', height: '100vh'}}> ) : ( <Button onClick={() => setVideoCall(true)}>Start Call ); };
export default VideoWithUIKit;
`
Also when i leave the call by using the leave button provides by the ui kit, it gives another error,
`Unhandled Runtime Error
RtmInvalidStatusError: Error Code 102 - Logout failure. The client has already been logged out.`
The text was updated successfully, but these errors were encountered:
I'm facing the same issue, did you find any solution?
Sorry, something went wrong.
No branches or pull requests
I made a custom component and I use it in my 2 user side. But getting this error.
My code block is,
`
import {IAgoraCredentials} from '@/pages/lawyer/video-call';
import {Button} from '@mui/material';
import AgoraUIKit from 'agora-react-uikit';
import {useState} from 'react';
const VideoWithUIKit = ({credentials}: {credentials: IAgoraCredentials}) => {
const [videoCall, setVideoCall] = useState(false);
const rtcProps = {
appId: credentials?.APP_ID,
channel: credentials?.CHANNEL, // your agora channel
token: credentials?.TOKEN, // use null or skip if using app in testing mode
};
const callbacks = {
EndCall: () => setVideoCall(false),
};
return videoCall ? (
<div style={{display: 'flex', width: '100vw', height: '100vh'}}>
) : (
<Button onClick={() => setVideoCall(true)}>Start Call
);
};
export default VideoWithUIKit;
`
Also when i leave the call by using the leave button provides by the ui kit, it gives another error,
`Unhandled Runtime Error
RtmInvalidStatusError: Error Code 102 - Logout failure. The client has already been logged out.`
The text was updated successfully, but these errors were encountered: