0

Unable to join the room in Twilio Video call and below code am using for create room .

private registerRoomEvents() {
        this.activeRoom
            .on('disconnected',
                (room: Room) => room.localParticipant.tracks.forEach(publication => this.detachLocalTrack(publication.track)))
            .on('participantConnected',
                (participant: RemoteParticipant) => this.participants.add(participant))
            .on('participantDisconnected',
                (participant: RemoteParticipant) => this.participants.remove(participant))
            .on('dominantSpeakerChanged',
                (dominantSpeaker: RemoteParticipant) => this.participants.loudest(dominantSpeaker));
    }
  • When you say you can't join the room, what do you mean? Do you get an error? In the code you shared, I can't actually see the call to `Video.connect`, can you share that too? I assume it is part of `this.videoChatService`. – philnash Jul 26 '21 at 01:53
  • async joinOrCreateRoom(name: string, tracks: LocalTrack[]) { let room: Room = null; try { const token = await this.getAuthToken(); room = await connect( token.value, { name, tracks, dominantSpeaker: true, } as ConnectOptions) } return room; } – ramu yepuganti Jul 26 '21 at 06:09
  • Hi philnash connecting purpose i can use this service and passing input these parameters – ramu yepuganti Jul 26 '21 at 06:10
  • In twilio account i observer room connected but participant vedio not display and it show black screen – ramu yepuganti Jul 26 '21 at 06:11
  • So it is connecting? But you can't see the video? In that case, can you edit your question and show how you are trying to show the participants' videos? – philnash Jul 26 '21 at 06:52
  • Please add the code to your question and comment to let me know you have done so. Please do not add code as comments as it is unreadable. Thanks! – philnash Jul 26 '21 at 06:53
  • Hi philnash just now modified the question and share related code .check once – ramu yepuganti Jul 26 '21 at 07:10
  • Are you also listening for new participants joining the room? And what does the `subscribe` method do? Also, do you see any errors in your developer tools? – philnash Jul 26 '21 at 07:17
  • yes but No Errors display in developer tools – ramu yepuganti Jul 26 '21 at 07:19
  • First thing in connect method retrun response not contain participant object.its return empty and then after i will do event registeration. – ramu yepuganti Jul 26 '21 at 07:21
  • When you connect to the room, the existing participants may or may not be connected already. Please add your code where you listen for new participants to join the room. – philnash Jul 26 '21 at 07:23
  • just now added check once – ramu yepuganti Jul 26 '21 at 07:26
  • https://github.com/IEvangelist/IEvangelist.VideoChat this link am using clone the code – ramu yepuganti Jul 26 '21 at 07:28
  • Are you using that exact application or have you changed anything with it? – philnash Jul 26 '21 at 07:52
  • Exact am using no changes – ramu yepuganti Jul 26 '21 at 08:10
  • notification hub is it necessary? service is using our service and our twilio configuration – ramu yepuganti Jul 26 '21 at 08:10
  • If you are using that application without changes, then I recommend you [raise an issue in that repo](https://github.com/IEvangelist/IEvangelist.VideoChat/issues) that way you will likely get the person who wrote the app to help rather than trying to explain it to me. Be sure to explain exactly what isn't working and what you have tried and I'm sure you'll get the help you need. – philnash Jul 26 '21 at 08:16

0 Answers0