steep-balloon-41261
12/23/2022, 1:41 PMaloof-policeman-62304
12/23/2022, 1:42 PMfunction handleTrackSubscribed(
track: RemoteTrack,
publication: RemoteTrackPublication,
participant: RemoteParticipant,
) {
if (track.kind === Track.Kind.Video || track.kind === Track.Kind.Audio) {
// attach it to a new HTMLVideoElement or HTMLAudioElement
const element = track.attach();
parentElement.appendChild(element);
}
}
I can get the audio and video feed from my webcam, I just don't understand how to display it on my webpage.dry-elephant-14928
12/23/2022, 5:56 PMaloof-policeman-62304
12/23/2022, 7:15 PMnpm install livekit-client --save
command is for.
I cloned, did an "npm install" and then did a "yarn run" on sample. The example worked! Happy to see some progress. The yarn command is new to me. I'll look further into my Angular errors and come back if I don't have any luck with fixing them.