getUserMedia() Paramters | Description |
---|---|
Constraints | It consist of array which allows us to specify which media devices to use i.e audio or video or both |
Success callback | Create a function for success callback which will provide you the stream which you get from your media devices |
Error callback | This callback get invoked when there is problem like there are no media devices, or user has denied the permission to use them |