Stopping video preview also makes local video tile black
See original GitHub issueWhen I call audioVideo.stopVideoPreviewForVideoInput(videoPreviewEl)
, it stops the video preview but also the “real” local video.
- In my DOM, there are 2
<video>
elements : one for displaying my local video (up and running thanks toaudioVideo.startLocalVideoTile()
andaudioVideo.bindVideoElement(videoLocalTileId, videoLocalEl)
) and one for the video preview (in order to be able to pick the video settings before) - When I call
audioVideo.startVideoPreviewForVideoInput(videoPreviewEl)
everything is fine, I have my 2<video>
elements (videoPreviewEl and videoLocalEl) working - But as soon as I call
audioVideo.stopVideoPreviewForVideoInput(videoPreviewEl)
, the videoLocalEl goes black and stops displaying the local video.
Platform
- OS: macOS 10.15.5
- Browser: Google Chrome
- Browser Version: 83.0.4103.106
- Amazon Chime SDK GitHub Commit: version 1.9.0
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Resolve Black Screen Issue When Play Videos
Workable solutions fix the “black screen” issue when playing videos · Uninstall the Adobe that you have and then download a recent version...
Read more >React-Amazon Chime: Remote user's video tile turns black ...
I am keeping track of a 'tileStates' array which includes both the local and the remote video tiles. The tileStates array is updated...
Read more >Using video during an Amazon Chime meeting
To pause or play an attendee's video, choose their video tile. Attendees don't know when they've been paused. You don't have to turn...
Read more >VideoTile | amazon-chime-sdk-js
VideoTile is a binding of attendee id, a video stream, and a video element that sends out updates to session observers whenever one...
Read more >My After Effects preview is all black. - Adobe Support Community
Audio played during ram preview but the video was all black. ... Make sure it's ... Also the green rendering line doesn't fill...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@rlebosse, this happens because stopVideoPreviewForVideoInput will terminate the current active camera stream https://github.com/aws/amazon-chime-sdk-js/blob/master/src/devicecontroller/DefaultDeviceController.ts#L172. If this is needed for your use case, one way to workaround this is to use 2 different DefaultDeviceController with one is specific for preview.
The workaround works great, thanks @ltrung