-
-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error with twilio-min-js #17
Comments
You have to use SSL. Chrome does not allow apps to access media services when the connection is not encrypted. |
Hi Migual; thank you for your response. The error is happing even when i try to run the app locally( localhost:5000). is this error also associated to SSL ? if so, what is your suggestion ? should i need to buy SSL certificate to run the app? |
I recorded a video showing how to do this. Have you seen it? https://www.youtube.com/watch?v=5hdrW6yEwro You can use ngrok to provision a temporary https URL to your application. |
yes i used ngrok . i got the temporary url . but receiving the same error |
I'm not really sure how to help. You can see how I do it in the video. If that does not work for you, then maybe try a different browser. You need to figure out why your browser does not provide access to the media APIs, this is all in the browser, it is not a problem with the application or the Twilio library. |
The error is in the Twilio library because this is where the call to request access to the camera is made. You can see this in the stack trace. It's right there in your screenshot. I mentioned a several times already that you need to use an https URL. This is also mentioned in the video that I shared. Yet, you are using an http URL. How do you expect this will work without encryption? It is required, nothing I or Twilio can do about that. |
thank you muguel for your response. i understand what you have said. i might tested on http but i will check that on https which is generated by ngrok |
Hi Migual; i tested via https. it works . it was my problem i was only using the http not https link. once i get the https forwarding link from ngrok, able to open the app on chrome and safari. i am closing this requested as solved. thank you for your swift response . |
Hi
i wanted to share you this print screen . i get problem launching the app as it is stated . when i inspect the error is located at 'twilio-min-js' which unable to load the video . could you please help if i miss something to include here .
![image](https://user-images.githubusercontent.com/42384777/131226790-03aa37b7-854a-4a6e-b308-f39b1cd00f45.png)
thanks
The text was updated successfully, but these errors were encountered: