twilio / video-quickstart-android

Twilio Video Quickstart for Android
MIT License
212 stars 159 forks source link

In Video invite getting the Missing video grants error on connecting room #710

Closed ArjunPatidar-numero closed 10 months ago

ArjunPatidar-numero commented 2 years ago

Hello, I'm trying to integrate the Twilio video invite and I'm getting the

W/System.err: com.twilio.video.TwilioException: Missing video grants
/VideoInviteActivity: onConnectFailure: Missing video grants
/com.numero.local I/VideoInviteActivity: onConnectFailure: []

When I try to connect to room,

sdtorresl commented 2 years ago

I could reproduce the issue and basically the problem is that the SDK Starter is missing a VideoGrant permission for the token. I fixed adding the following code in the tokenGenerator function:

 const videoGrant = new VideoGrant();
 token.addGrant(videoGrant)
ArjunPatidar-numero commented 2 years ago

Thanks @sdtorresl @paynerc @kwhinnery @rfbrazier , Now I'm facing the notification issue in the video room, How can we send a notification to the participants whom we want to join in the room, I need He should receive the call ringing notification just like WhatsApp, Can you please help me with this?

afalls-twilio commented 10 months ago

@ArjunPatidar-numero The design of the sdk is that both participants must know of the room they would like to join beforehand. To achieve sending a notification to another user to join any room, one would have to implement that outside of the SDK and is outside the scope here.