Ok, you have two problems (and then another one coming down the line).
First, you have the wrong id on your video container. It's currently:
<divid="video-container live">
ids can't have spaces and that live should be a class. There is a second problem you have in the JSX where the surrounding <div> has a class and not a className.
But, there's one further thing to watch out for. You will have multiple <Participant> components on the page, so you should not use ids for that. You could change video-container to a className and then change the CSS from #video-container to .video-container.
Yes, But for now, I have added only static element there
I need to show this name on video frame
I will work on geolocation after styling.
Ah, I see.
Ok, you have two problems (and then another one coming down the line).
First, you have the wrong
idon your video container. It's currently:ids can't have spaces and thatliveshould be a class. There is a second problem you have in the JSX where the surrounding<div>has aclassand not aclassName.But, there's one further thing to watch out for. You will have multiple
<Participant>components on the page, so you should not useids for that. You could changevideo-containerto aclassNameand then change the CSS from#video-containerto.video-container.So, your participant JSX should be:
And the CSS should be:
Try that and see how you get on.
Ahhhhhhhhhh!!! my bad, that I missed the id, I am thinking it was a class. Yes, it works!!
Thanks Dear :) Happy coding.