Skip to content
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

Closed
Asfetaw opened this issue Aug 28, 2021 · 9 comments
Closed

error with twilio-min-js #17

Asfetaw opened this issue Aug 28, 2021 · 9 comments
Labels
question Further information is requested

Comments

@Asfetaw
Copy link

Asfetaw commented Aug 28, 2021

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

thanks

@miguelgrinberg
Copy link
Owner

You have to use SSL. Chrome does not allow apps to access media services when the connection is not encrypted.

@miguelgrinberg miguelgrinberg added the question Further information is requested label Aug 28, 2021
@Asfetaw
Copy link
Author

Asfetaw commented Aug 30, 2021

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?

@miguelgrinberg
Copy link
Owner

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.

@Asfetaw
Copy link
Author

Asfetaw commented Aug 30, 2021

yes i used ngrok . i got the temporary url . but receiving the same error

@miguelgrinberg
Copy link
Owner

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.

@Asfetaw
Copy link
Author

Asfetaw commented Aug 30, 2021

image
As i showed you , the error is indicated at ' twilio-video.min.js '. is this showing helping you to understand ? what do you think , am i supposed to do something here ? because i have tested on chrome and safari but it is showing the same error .

@miguelgrinberg
Copy link
Owner

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.

@Asfetaw
Copy link
Author

Asfetaw commented Aug 30, 2021

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

@Asfetaw
Copy link
Author

Asfetaw commented Aug 31, 2021

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 .

@Asfetaw Asfetaw closed this as completed Aug 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants