Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

widgets[video-recorder]: Handle edge cases for screen recording #273

Conversation

rafaellehmkuhl
Copy link
Member

@rafaellehmkuhl rafaellehmkuhl commented Mar 27, 2023

  • Handle user not selecting stream
  • Handle user denying screen sharing
  • Handle no external streams being available
  • Handle stream not yet active
  • Don't stop tracks from external streams
  • Improve UX for screen stream recordings

Fix #269

@rafaellehmkuhl rafaellehmkuhl force-pushed the fix-recording-for-solo-stream branch 2 times, most recently from f78a188 to 037743b Compare March 27, 2023 18:09
@rafaellehmkuhl rafaellehmkuhl marked this pull request as ready for review March 27, 2023 18:09
@rafaellehmkuhl rafaellehmkuhl marked this pull request as draft March 27, 2023 18:20
@rafaellehmkuhl rafaellehmkuhl force-pushed the fix-recording-for-solo-stream branch 3 times, most recently from 23798ab to 5c9bc38 Compare March 27, 2023 19:28
@rafaellehmkuhl rafaellehmkuhl marked this pull request as ready for review March 27, 2023 19:31
@rafaellehmkuhl rafaellehmkuhl requested review from patrickelectric and removed request for patrickelectric March 27, 2023 19:34
@rafaellehmkuhl
Copy link
Member Author

@patrickelectric just to make sure, this PR should be approved/merged first.

Copy link
Member

@patrickelectric patrickelectric left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, the comment got in pending state

src/components/widgets/VideoRecorder.vue Show resolved Hide resolved
src/components/widgets/VideoRecorder.vue Outdated Show resolved Hide resolved
- Handle no streams being available
- Handle user not selecting stream
- Handle user denying screen sharing
- Handle media stream not active
In the former behavior, the user permission was requested when selecting the screen stream option. This yeld to the browser adding a 'recording' warn, even if the recording had not yet started.

This could lead to the users thinking that the recording had already started, forgething to click the record button.

In the new behavior, the permission is asked *after* clicking the record button, making clear what's happening.
@rafaellehmkuhl
Copy link
Member Author

@patrickelectric I need approval on this one also.

@rafaellehmkuhl rafaellehmkuhl merged commit fb6c6d3 into bluerobotics:master Mar 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Video recording does not work when there are no video streams, just the screen stream
2 participants