question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Stopping video preview also makes local video tile black

See original GitHub issue

When 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 to audioVideo.startLocalVideoTile() and audioVideo.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:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
ltrungcommented, Jul 1, 2020

@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.

0reactions
rlebossecommented, Jul 3, 2020

The workaround works great, thanks @ltrung

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found