Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Sample component state for a Daily video chat app built in React
{
local: {
isLoading: <boolean>,
audioTrack: <MediaStreamTrack>,
videoTrack: <MediaStreamTrack>
},
local-screen: {
isLoading: <boolean>,
audioTrack: null,
videoTrack: <MediaStreamTrack>
},
<other-participant-1>: {
/*...*/
},
<other-participant-1>-screen: {
/*...*/
},
/* ... */
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.