-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Fix #5627 : Stop recording should stop microphone and angular-recorder should be replaced. #6708
Conversation
…Modified html and js in AudioTranslationBarDirective.
…ab while recording.
… for mp3converter worker.
Looking for feedback on design, code for the rough setup I have. So this is still a WIP, there is an issue when you click on stateTranslation when recording.
The result of this will be the page will be stuck in "loading..." When $rootScope.loadingMessage = '' it works fine but based on running debugger for initAudioBar it shows the message as blank/ not obviously visible. |
.../templates/dev/head/pages/exploration_editor/translation_tab/AudioTranslationBarDirective.ts
Outdated
Show resolved
Hide resolved
Once I figure out how to set a web-worker script to play nicely with the typescript compiler, I think those tests will pass. I will also write a test for it as well. |
Is it okay that I include https://github.com/microsoft/TypeScript/blob/master/lib/lib.webworker.d.ts as part of the typings. I need it so it can compile to ts, if I need to cut this down I will do that. |
/cc @ankita240796 (who is our authority on TypeScript!) |
Hi @mzaman07, can it be not added in typings present in node_modules folder, why do we need it in custom typings? |
I see it is already there, ok I'll just use that instead. The reason for adding was that I wasn't sure if it was already in the codebase. |
Hi @mzaman07 please note the failing tests. |
@YashJipkate, Can you please review this PR? (As discussed in the meeting!) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM from code owner's perspective. Thanks, @mzaman07!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM from code owner's perspective, Thanks @mzaman07!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM as codeowner, thanks @mzaman07!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM from a codeowner's perspective.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mzaman07, Can you please update your PR with upstream, I'm unable to merge this PR as the codecov tests are not running. Also, I've left a few comments (simple nit) related to code comment It would be great if we can fix those and merge this PR quickly! :)
/cc @oppia/dev-workflow-team
.../templates/dev/head/pages/exploration_editor/translation_tab/AudioTranslationBarDirective.ts
Outdated
Show resolved
Hide resolved
.../templates/dev/head/pages/exploration_editor/translation_tab/AudioTranslationBarDirective.ts
Outdated
Show resolved
Hide resolved
.../templates/dev/head/pages/exploration_editor/translation_tab/AudioTranslationBarDirective.ts
Outdated
Show resolved
Hide resolved
Dunno why the codecov is not working. I'll write tests going through all of Voiceover component then. It could be it's own test script or expand on explorationTranslationTab.js . Edit: Looks like I'll need touch these settings to make tests work. For now I'll just push without tests. |
Ok I guess I see a pattern. @mzaman07 are you using your own instance of circleci? This is creating problems with the codecov tests. /cc @oppia/dev-workflow-team |
Hi @mzaman07, can you please temporarily unfollow mzaman07/oppia by visiting https://circleci.com/gh/organizations/mzaman07/settings#projects? Once you've done that, update your branch to re-trigger the builds at oppia/oppia. This will un-stall codecov. Thanks! |
Oh I see ok thanks. Yeah I was using my own to test something awhile back. |
Explanation
Fixes #5627 by stopping the microphone stream when user stops recording. Fixes #6388 by replacing the angular-recorder library. Design doc provides more background info on changes and the reasoning for choosing this method.
Checklist
python scripts/pre_commit_linter.py
andbash scripts/run_frontend_tests.sh
.