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

Safari recording stalls on initial load. #260

Open
ddfridley opened this issue Aug 25, 2020 · 0 comments
Open

Safari recording stalls on initial load. #260

ddfridley opened this issue Aug 25, 2020 · 0 comments
Labels
Javascript Javascript

Comments

@ddfridley
Copy link
Contributor

When starting to record on Safari on a Mac using /candidate-conversation-candidate-recorder I saw the Stall Watch screen that says Hmmm the Internet is slow here .....

Playing would not start.

The error message in the console is:
Undebate.stallWatch.updater caught error on play" -- "NotAllowedError" - "The request is not allowed by the user agent or the platform in the current context, possible because the user denied permission"

This is the line of code.
logger.error('Undebate.stallWatch.updater caught error on play', err.name, err.message)

Basically, playing didn't start right way, and so stall watch kicked in. But, the browser wants the user to click on something (like the begin button) before it will play audio. The fix is to popup the permission overlay - but that is in a parent element to stall watch. Can we structure this to that the protected play code (that catches errors and throws up permissions window) is in the parent, and not in stallwatch - so that we don't have to have the same code in so many places.

To be able to test recording on Safari you need to enable Develop->Experimental Features->MediaRecorder

[Not you can press the pause/play button twice and it will start to play - but the stall watch window won't go away. The stall watch window should go away.

@ddfridley ddfridley added the Javascript Javascript label Aug 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Javascript Javascript
Projects
None yet
Development

No branches or pull requests

1 participant