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

Added checks for wav recorder state to ensure they stay in sync #28

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

undecidedapollo
Copy link

@undecidedapollo undecidedapollo commented Oct 4, 2024

Issue:
In the manual PTT mode it is possible for the button to get into an incorrect state, throwing an error on the page.

Added checks for ensuring the wav recorder state and the page state are in sync. Calling .record() when already recording and .pause() while already paused causes errors.

Reproduction:
The error is reproducible if the user moves their mouse cursor off the manual PTT button after pressing it (Mouse Down over button -> move mouse off of button -> release mouse, the screen will stay recording). Clicking the button again will cause an error as the wav recorder is still recording from before.

Fix:
Check the state before calling operations on the wav recorder.

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.

1 participant