-
Notifications
You must be signed in to change notification settings - Fork 11.2k
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
[NEW] Audio recording as mp3 and better ui for recording #9726
Conversation
@RocketChat/core can we give this some attention? ❤️ This UI change. Not sure on performance implications of libmp3lame.js I assume compatible with all recent browsers? |
Instead of including the full libmp3lame.js can we use an MP3 reference? Ideally a library that we aren't developing would be brought in as a dependency via npm |
@kb0304 thank you for your great effort. all things are good except the deley between pressing the green "ok" button and the sending progress bar load. What's exactly the cause of the delay? and how can I overcome that? |
@geekgonecrazy @amonemian |
@kb0304 the box for audio control is taking unnecessary space when not in use |
@kb0304 Can you replace the |
@kb0304 It's not working on safari |
@kb0304 Safari 11.0.3 |
@kb0304 Plenty of packages in the project bring in npm packages. So lots of examples. Just define the npm package in the package.js and do an import at the top of the file you use it in. |
I am unable to use the imported package in Worker's scope. Is there any other alternative to serving the static js file from the server? |
You should just be able to swap this import for an import to the package and serve this file from public still. https://github.com/RocketChat/Rocket.Chat/pull/9726/files#diff-d796bdf4e59d6b846640607e356f820aR1 I see no problem continuing to serve this wrapper. Its just including the library its self and serving that up that feels dirty. :) |
@geekgonecrazy I agree with you. Will improve it. |
@rodrigok I have fixed the UI and have added a loader. I tested the Heroku deployment via Safari 11.0.3 and it worked without any issue. Could you please share steps to reproduce / details about the error? |
package.json
Outdated
"ip-range-check": "^0.0.2", | ||
"jquery": "^3.3.1", | ||
"jschardet": "^1.6.0", | ||
"lamejs": "^1.2.0", |
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.
Are you still using the import?
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.
I think the idea was to use this instead of including the file. But per DM struggling to get the import to work in the worker.
So need to figure out how to serve the file out of the npm package
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.
Yes, that was the purpose but I am not able to serve it from node_modules
I have removed the dependency for now.
package.json
Outdated
@@ -136,9 +136,13 @@ | |||
"iconv-lite": "^0.4.19", | |||
"image-size": "^0.6.2", | |||
"imap": "^0.8.19", | |||
"ip-range-check": "0.0.2", | |||
"jquery": "^3.2.1", | |||
"jschardet": "1.6.0", |
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.
Can you remove these duplicated lines?
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.
Done
@RocketChat/core
Closes #7844 #4552
Real-time mp3 encoding or audio message using lame.js (JS library ported from LAME Mp3 encoder)
Updated UI :