undebate icon indicating copy to clipboard operation
undebate copied to clipboard

Safari recording stalls on initial load.

Open ddfridley opened this issue 3 years ago • 0 comments

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 avatar Aug 25 '20 20:08 ddfridley