Twilio from Twilio-video-app-react Repository

Apache License 2.0

29 Sep 2022

Manjeshbhargav

Custom Token API

Question I have created a custom API in PHP for fetching tokens everything is going well but there is an issue in the conversation API

I am getting the following error There was a problem getting the Conversation associated with this room. Error: There was a problem getting the Conversation associated with this room.

here is my API CODE which I have created

`
$requestdata = json_decode($request->getContent(), true);

 // Substitute your Twilio Account SID and API Key details
    $accountSid = env('TWILIO_ACCOUNT_SID');
    $apiKeySid = env('TWILIO_API_KEY_SID');
    $authtoken = '5fbd7ad7f6c7795fd3359c6d5550a0c5';
    $apiKeySecret = env('TWILIO_API_KEY_SECRET');
    $conversation_sid = env('TWILIO_CONVERSATIONS_SERVICE_SID');
    $identity = $requestdata['user_identity'];
    // Create an Access Token
    $token = new AccessToken(
        $accountSid,
        $apiKeySid,
        $apiKeySecret,
        3600,
        $identity
    );

    //Grant access to Video
    $grant = new VideoGrant();
    $grant->setRoom($requestdata['room_name']);
    $token->addGrant($grant);

    // // Create Chat grant
    $chatGrant = new ChatGrant();
    $chatGrant->setServiceSid($conversation_sid);
    $token->addGrant($chatGrant);
    $twilio = new Client(
        $accountSid,
        $authtoken
    );
    $conversation_service = $twilio->conversations->v1->services($conversation_sid)->conversations
        ->create(
            [
                "friendlyName" => $requestdata['room_name'],
                "uniqueName" => $requestdata['room_name']
            ]
        );
    // Serialize the token as a JWT
    // echo $token->toJWT();
    return response()->json([
        'token' => $token->toJWT(),
        'room_type' => 'group',
        'conversation_id' => $conversation_service->sid
    ]);` 

Additional context https://prnt.sc/2arWzh4uIvwJ

Forked On 29 Sep 2022 at 05:58:28

Manjeshbhargav

Hi @DeepakDums1998 ,

Thanks for writing in with your question. The error raised usually has a code associated with it. Can you share it with me? Also, is there a way I can access a deployed version of your app? That will help me with debugging.

Commented On 29 Sep 2022 at 05:58:28

Manjeshbhargav

Passing Passcode and Room Name via url

Is there a way to pass both a passcode and room name via url?

When I follow the instructions here: https://www.twilio.com/blog/set-default-room-name-twilio-video-react-app I get the response "Not found".

Alternatively, if there is a way to automatically populate the room name and manually enter the passcode (room first, name and passcode on next screen) that would also fit my use case.

Forked On 29 Sep 2022 at 05:54:47

Manjeshbhargav

@mcacnl ,

Thanks for writing in. While your local deployment works if you add /room/test to the URL, when you deploy using npm run deploy:twilio-cli, I think the server that is serving the app is different from the local server. So, one way you can achieve what you want is change the app source to accept room name as a URL parameter along with passcode. Does this work for you?

Commented On 29 Sep 2022 at 05:54:47

PikaJoyce

VIDEO-11239 Add Krisp Noise Cancellation

Contributing to Twilio

All third party contributors acknowledge that any contributions they provide will be made under the same open source license that the open source project is provided under.

  • [x] I acknowledge that all my contributions will be made under the project's license.

Pull Request Details

JIRA link(s):

Description

This PR adds Krisp to the Ahoy app. If Krisp is installed, users can enable and disable noise cancellation by clicking the switch button on the Device Selection Screen before joining the room, and any time during the call by accessing Audio and Video settings.

krisp

Burndown

Before review

  • [ ] Updated CHANGELOG.md if necessary
  • [ ] Added unit tests if necessary
  • [ ] Updated affected documentation
  • [ ] Verified locally with npm test
  • [ ] Manually sanity tested running locally
  • [X] Included screenshot as PR comment (if needed)
  • [X] Ready for review

Before merge

  • [x] Got one or more +1s
  • [x] Re-tested if necessary

Merged On 29 Sep 2022 at 12:42:00

PikaJoyce

Commented On 29 Sep 2022 at 12:42:00

Manjeshbhargav

VIDEO-11239 Get current unit tests to pass.

Pushed On 29 Sep 2022 at 12:41:59

Jansmann

started

Started On 28 Sep 2022 at 09:37:34

GeorgeDavila

started

Started On 28 Sep 2022 at 12:45:28

PikaJoyce

VIDEO-11239 Add Krisp Noise Cancellation

Contributing to Twilio

All third party contributors acknowledge that any contributions they provide will be made under the same open source license that the open source project is provided under.

  • [x] I acknowledge that all my contributions will be made under the project's license.

Pull Request Details

JIRA link(s):

Description

This PR adds Krisp to the Ahoy app. If Krisp is installed, users can enable and disable noise cancellation by clicking the switch button on the Device Selection Screen before joining the room, and any time during the call by accessing Audio and Video settings.

krisp

Burndown

Before review

  • [ ] Updated CHANGELOG.md if necessary
  • [ ] Added unit tests if necessary
  • [ ] Updated affected documentation
  • [ ] Verified locally with npm test
  • [ ] Manually sanity tested running locally
  • [X] Included screenshot as PR comment (if needed)
  • [X] Ready for review

Before merge

  • [x] Got one or more +1s
  • [x] Re-tested if necessary

Merged On 27 Sep 2022 at 08:42:52

PikaJoyce

Commented On 27 Sep 2022 at 08:42:52

Manjeshbhargav

VIDEO-11239 Prep for 0.8.0.

Pushed On 27 Sep 2022 at 08:35:38

Divan-mt

started

Started On 27 Sep 2022 at 10:31:26

Gosoriocrowd

A collaboration application built with the twilio-video.js SDK and React.js

Forked On 26 Sep 2022 at 10:14:35

Gosoriocrowd

started

Started On 26 Sep 2022 at 10:05:38

Freele

started

Started On 26 Sep 2022 at 11:02:26

Manjeshbhargav

VIDEO-11239 UI changes.

Pushed On 23 Sep 2022 at 11:40:33

Araguaci

A collaboration application built with the twilio-video.js SDK and React.js

Forked On 23 Sep 2022 at 10:47:58

Araguaci

started

Started On 23 Sep 2022 at 10:47:52

Ryanlucaslemos

started

Started On 23 Sep 2022 at 09:48:26

PikaJoyce

VIDEO-11239 Add Krisp Noise Cancellation

Contributing to Twilio

All third party contributors acknowledge that any contributions they provide will be made under the same open source license that the open source project is provided under.

  • [x] I acknowledge that all my contributions will be made under the project's license.

Pull Request Details

JIRA link(s):

Description

This PR adds Krisp to the Ahoy app. If Krisp is installed, users can enable and disable noise cancellation by clicking the switch button on the Device Selection Screen before joining the room, and any time during the call by accessing Audio and Video settings.

krisp

Burndown

Before review

  • [ ] Updated CHANGELOG.md if necessary
  • [ ] Added unit tests if necessary
  • [ ] Updated affected documentation
  • [ ] Verified locally with npm test
  • [ ] Manually sanity tested running locally
  • [X] Included screenshot as PR comment (if needed)
  • [X] Ready for review

Before merge

  • [ ] Got one or more +1s
  • [ ] Re-tested if necessary

Merged On 23 Sep 2022 at 09:46:59

PikaJoyce

Thanks @olipyskoty! Looks good!

Commented On 23 Sep 2022 at 09:46:59

Manjeshbhargav

VIDEO-11239 Updating twilio-video and CHANGELOG.md.

Pushed On 23 Sep 2022 at 09:46:58

PikaJoyce

VIDEO-11239 Add Krisp Noise Cancellation

Contributing to Twilio

All third party contributors acknowledge that any contributions they provide will be made under the same open source license that the open source project is provided under.

  • [x] I acknowledge that all my contributions will be made under the project's license.

Pull Request Details

JIRA link(s):

Description

This PR adds Krisp to the Ahoy app. If Krisp is installed, users can enable and disable noise cancellation by clicking the switch button on the Device Selection Screen before joining the room, and any time during the call by accessing Audio and Video settings.

krisp

Burndown

Before review

  • [ ] Updated CHANGELOG.md if necessary
  • [ ] Added unit tests if necessary
  • [ ] Updated affected documentation
  • [ ] Verified locally with npm test
  • [ ] Manually sanity tested running locally
  • [X] Included screenshot as PR comment (if needed)
  • [X] Ready for review

Before merge

  • [ ] Got one or more +1s
  • [ ] Re-tested if necessary

Merged On 23 Sep 2022 at 08:25:17

PikaJoyce

Thanks @olipyskoty! Looks good!

Commented On 23 Sep 2022 at 08:25:17

Manjeshbhargav

VIDEO-11239 Changes to make noise cancellation work.

Pushed On 23 Sep 2022 at 07:36:52

Mahenred

A collaboration application built with the twilio-video.js SDK and React.js

Forked On 23 Sep 2022 at 05:52:20

Evaneos

A collaboration application built with the twilio-video.js SDK and React.js

Forked On 20 Sep 2022 at 03:45:00

Miserlou

started

Started On 19 Sep 2022 at 11:57:27
Create Branch
Dependabot In twilio/twilio-video-app-react Create Branchdependabot/npm_and_yarn/jose-2.0.6

Dependabot

A collaboration application built with the twilio-video.js SDK and React.js

On 16 Sep 2022 at 06:46:30

Dependabot

Bump jose from 2.0.5 to 2.0.6

Created On 16 Sep 2022 at 06:46:30

About Repository

A collaboration application built with the twilio-video.js SDK and React.js
Language: TypeScript
Star: 1665
Fork: 662
Watchers: 1665
Open Issues: 26
https://github.com/twilio/twilio-video-app-react
Apache License 2.0
Last updated: 28 Sep 2022
Tropics: