react-native-twilio-video-webrtc
react-native-twilio-video-webrtc copied to clipboard
Other Participent video not visible after we connect from front end
Steps to reproduce
- Created Token from Node const roomId = '' //same room id for both the participents const userId = '' //unique id for specific user const accessToken = new AccessToken( ACCOUNT_SID, API_KEY_SID, API_KEY_SECRET ); var dt = new Date(); accessToken.identity = userId; // Set the Identity of this token var grant = new VideoGrant({ room: roomId }); // Grant access to Video //grant.room = roomId; accessToken.addGrant(grant); const token = accessToken.toJwt();
- Called connect function in Front End twilioVideo.connect({ roomName: this.props.chat.videoId, // This is again same id for both the participents accessToken: this.props.chat.token, });
Expected behavior
Tell us what should happen
Actual behavior
When we connect two people in the same room, The person is able to see his own video. But not able to see the video of another person.
Environment
- Node.js version: 8.9.0
- React Native version: 0.62.2
- React Native platform + platform version: Android 8.1.0
react-native-twilio-video-webrtc
Version: master
experiencing the same issue as well, although I created the token using the Programmable Video testing tools on the dashboard.
@umarniz @slycoder Any chance you can enlighten on this? Just like @Tochukwuibe I have generated a token via Twilio Video Test token and both iOS devices are logging that they are connected to that test token.
Unfortunately onParticipantAddedVideoTrack is not firing. I get no other participants in the room.
Most probably because you are using the same token on both platforms.
This would cause an error as the Twilio token is connected to an identity and the identity would be the same for both participants which Twilio doesn't allow.
Make sure you are using 2 different Twilio tokens for both participants.
If that's not the case then I wouldn't know why this is happening.
Please check suggestion in this open issue...By Commenting code, it starts working still proper fix is required from twillio library. https://github.com/twilio/twilio-video-app-react/issues/577