vline

Allow/Deny getUserMedia button


I would like to enable user to see their self-view right after they log on, which will also require them to click the allow button on the browser for getUserMedia. This way they will be ready to receive a call without having to click the allow camera button each time they receive a call.

Does vline support this?

Thanks


Solution

  • Yes, you can call the vline.Client.getLocalStream method to get the local video stream before making a call.

    An example where this is actually used can be found in the vline-room-example.