This enables developers to change streams being sent mid-call by exposing functions as in:
var phone = window.PHONE({...}); phone.camera.toggleAudio(); phone.camera.toggleVideo();
.toggleVideo() might require some socket event to inform the other part it needs to hide the video or a black video will be shown.
These functions work only on initialized user devices. It does not take care of asking for new permissions or renegotiations.
This enables developers to change streams being sent mid-call by exposing functions as in:
var phone = window.PHONE({...}); phone.camera.toggleAudio(); phone.camera.toggleVideo();
.toggleVideo() might require some socket event to inform the other part it needs to hide the video or a black video will be shown.
These functions work only on initialized user devices. It does not take care of asking for new permissions or renegotiations.