Open ishangupta-1510 opened 2 years ago
@ishangupta-1510 we had the same problem and were able to solve it by adding a token to the rtcProps, so:
const rtcProps = { appId: 'your app id', channel: 'test', token: 'your token here' };
To generate the token, go to your project in the Agora console, click on "config" and there'll be an option to generate a temp RTC token:
Copy the token and add it to rtcProps and you should see the camera show.
I have added appId,channel & token.... but still facing the same issue (BlackScreen)
import React, {useState} from 'react'; import AgoraUIKit from 'agora-rn-uikit';
const App = () => { const [videoCall, setVideoCall] = useState(true); const rtcProps = { appId: '240bd9ad79ff48e69d0035d81704d7f0', channel: 'test', }; const callbacks = { EndCall: () => setVideoCall(false), }; return videoCall ? (
) : ( <></> ); };
export default App;