Speaker
and Viewer
create-react-app
, also we will install useful dependencies.App.js
, this file will contain all the screens. and render all screens conditionally according to the appData
state changes./src/App.js
/src/api.js
src/screens/WelcomeScreenContainer.js
src/screens/speakerScreen/SpeakerScreenContainer.js
src/screens/speakerScreen/MediaControlsContainer.js
useMeeting
Hook and render them individually. Here we will be using SingleParticipantContainer
for rendering a single participant webcam streamsrc/screens/speakerScreen/ParticipantsGridContainer.js
participantId
from props and will get webcam streams and other information from useParticipant
hook.src/screens/speakerScreen/SingleParticipantContainer.js
ViewerScreenContainer
src/screens/ViewerScreenContainer.js
npm run start
Posted Nov 6, 2023
In this article, I wrote a step-by-step guide to building a robust live-streaming app with React and VideoSDK.
0
39
Video SDK