J. Finn
J. Finn

Reputation: 159

What causes the automatic prompt for permissions in this example from SignalWire

I'm working with this example from SignalWire as a base for my own code: Singnal Wire vanilla-calling example

I've noticed that the example will automatically ask for permission to use the microphone and webcam, but my own code will not (I'm working in a much larger code base, so I can't just post what I have). I was wondering what causes this behavior in the example, so I can attempt to recreate it in my environment. Could someone clarify?

If there is anything I can clarify, let me know.

Thank you in advance.

Upvotes: 0

Views: 48

Answers (1)

Luca Pradovera
Luca Pradovera

Reputation: 36

The permission request is caused by getUserMedia being invoked, which is a browser method (ie. not part of the SignalWire library). The library calls that while setting up the call, so if you are doing something at the lower level you might need to grab devices separately. It is also worth checking that you simply didn't deny access to devices (or have already accepted). Happy to take a look if you can post at least a snippet.

Upvotes: 1

Related Questions