Toppr Ask-Expert-Byjus
This is a React library which can be used for interacting with the tutors for doubt resolution of the students.
To install the package, run the following command in the terminal
npm install @toppr-engg/ask-expert-byjus
or
yarn add @toppr-engg/ask-expert-byjus
Install the Peer Dependencies in your project
yarn add react react-dom react-redux redux redux-saga
import VideoMeet from '@toppr-engg/video-meet'
function App() {
return (
<VideoMeet
clientId={clientId} //required --> string
token={token} //required --> string
apiBaseUrl={apiBaseUrl} //optional --> string
appId={appId} //required --> Agora App Id
channelName={channelName} // required --> Agora channel Name
rtcToken={rtcToken} // required --> Agora rtc Token
tutorDetails={tutorDetails} // details of tutor who gone to connect the call
studentDetails={studentDetails} // details of student who gone to connect the call
userId={userId} // required --> id of the user
handleRejoinSession={handleRejoinSession} // to rejoin back to the particular video call
isTutor={isTutor} // to check whether the user is tutor or not
localTrack={localTrack} // localTrack of user before joining --> coming from agora..
sessionId={sessionId} // sessionId of the session
roomId={roomId} // required for whiteBoard
roomToken={roomToken} // required for whiteBoard
firstMessage={firstMessage} // required to see the first Messgae
/>
)
}
clientId and token are to be generated by tenant app
For the Subject Confidence Flow, if the confidence is high then send the subjectId as a prop and through that the new session will be automatically created for the subject and the chat screen will open. If subjectId is not passed then the manual subject selection screen will be shown.