kimobrian / TwilioReact

A React Video Chat app using Twilio Video

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Participants cant see each others

xporium opened this issue · comments

Hi,
I did the same code which in blogs and it publishes on Heroku for temporary
https://videocallingtest.herokuapp.com
and set room name 111 but when I tried with two different pcs/laptops they connected correctly but they can't see each other

I had done some changes

attachParticipantTracks(participant, container) {

var tracks = this.getTracks(participant);
this.attachTracks(tracks, container);
}

getTracks(participant) {
return Array.from(participant.tracks.values()).filter(function (publication) {
return publication.track;
}).map(function (publication) {
return publication.track;
});
}

actually if I get track like below than i got
track.attach is not a function like error

var tracks = Array.from(participant.tracks.values());

so can you tell me anything has to configure or missing?

thanks in advance

bump