Description
openedon Oct 1, 2024
- Package Name: @azure/communication-calling
- Package Version: 1.28.4
- Operating system: Any
- nodejs
- version: 20.17.0
- browser
- name/version: Any
- typescript
- version:
- Is the bug related to documentation in
- README.md
- source code documentation
- SDK API docs on https://learn.microsoft.com
Describe the bug
We are using raw media access (https://learn.microsoft.com/en-us/azure/communication-services/quickstarts/voice-video-calling/get-started-raw-media-access) to stream images to remote participants in a call (using canvas.captureStream to create the mediaStream). We had an issue (on our side) where we stopped generating frames to the LocalVideoStream. Because of this, the communication-calling package thought there was a problem with the raw mediaStream source, and automatically switched to the default device camera. The LocalVideoStream should NEVER switch automatically to a device camera...that is a huge PRIVACY concern. Instead, the LocalVideoStream should raise an error and stop the video altogether.
To Reproduce
Steps to reproduce the behavior:
- Start a LocalVideoStream using raw media access from a canvas.
- Cause an issue with the raw media video source (like stop generating frames)
- Watch the video source switch automatically from raw video to a camera device.
Expected behavior
The LocalVideoStream should NEVER automatically switch to a camera device because the user is not expecting it. This is a privacy issue. If there is an problem with the raw media source, the LocalVideoStream should report an error and stop.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.