twilio-video-app-react | collaboration application built with the twilio-video.js SDK | Video Utils library
kandi X-RAY | twilio-video-app-react Summary
kandi X-RAY | twilio-video-app-react Summary
This application demonstrates a multi-party video application built with Twilio's Programmable Video JS SDK, Twilio's Conversations JS SDK, and Create React App.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of twilio-video-app-react
twilio-video-app-react Key Features
twilio-video-app-react Examples and Code Snippets
Community Discussions
Trending Discussions on twilio-video-app-react
QUESTION
I'm trying to implement this project: https://github.com/twilio/twilio-video-app-react
I got error "There was a problem getting the Conversation associated with this room." when the ChatProvider
did mount. Seem like chatClient
can't find the conversation with room.sid
but I can't figure out how to create conversation when it doesn't exist and add participants when conversation existed. Does anyone know this issue? Thanks!
Update: the server code: https://gist.github.com/qngnud/c9910afada625a9a4eceb3ad3a67d3b7
...ANSWER
Answered 2021-Apr-28 at 12:37Twilio developer evangelist here.
It appears that you are using similar code to the original app in your server, however you have missed a crucial keyword.
The part of the code where you try to fetch a conversation by the room.sid is surrounded by a try/catch, however it is called in promise form, so any failures will be picked up by a chained .catch()
function.
In the original code, the calls are made using the await
keyword which turns promises into code that appears synchronous and, most importantly, in which errors can be caught by a try/catch block.
So, you should either move your catch
blocks to .catch()
promise chains, or declare the whole function async
and use await
before the asynchronous function calls.
QUESTION
I am trying to limit the users that should be allowed to use the camera in a room (max of 9), so I'd like to disable the camera buttons for all the users once the limit has been reached. But I am currently blocked in determining the current number of users that has their camera on. I have searched the Twilio API about the rooms and participants API but can't find the answers in there.
Is there an easy way that I can use to determine the number of users that has their camera on in a single room? Once I'm able to determine that, I can use it to enable/disable the camera buttons of other users. I'm using JavaScript SDK and my app is based on https://github.com/twilio/twilio-video-app-react.
...ANSWER
Answered 2020-Nov-30 at 23:06Twilio developer evangelist here.
Different devices and different operating systems will have different abilities with regard to request the same device simultaneously.
It sounds like you want to determine who has their cameras on, and then you can add those up. getUserMedia
throws a NotReadableError when the browser tries to access the webcam but it's already in use (this isn’t consistent across all browsers / OS's.)
You can handle that error using the new-ish promise-based getUserMedia()
, seeing when the webcam is already in use.
QUESTION
So I'm forking off a sample Twilio video chat app (https://github.com/twilio/twilio-video-app-react). For the chat feature, Snackbar messages are employed. Which works fine. But I want to allow the user to send a message starting with http, so that the message will then be sent as a hyperlink URL.
The ChatInput component works fine for displaying this message as a hyperlink URL for the local user (i.e. - the sender). But the DataTrack event handler for the remote users doesn't display the message as a hyperlink. Just displays the literal text.
Here is the ChatInput.tsx, where any message starting with http will show up correctly for the local user.
...ANSWER
Answered 2020-Nov-20 at 03:00TL;DR: the function stringToHTML
is returnign a DOM element reference not a React element when passing the message to NotiStack, try wrapping it with a React element:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install twilio-video-app-react
The app is deployed to Twilio using the Twilio CLI. You can install the Twilio CLI using Homebrew on a Mac or npm.
This app requires an additional plugin. Install the CLI plugin with:. Note: If you have previously installed the @twilio-labs/plugin-rtc plugin, please make sure that you are using the most recent version. You can upgrade the plugin by running twilio plugins:update. The chat feature requires version 0.8.1 or greater of @twilio-labs/plugin-rtc.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page