Add inline audio playback for shared audio files #99
Replies: 4 comments 6 replies
-
|
I would like to help with implementing this feature |
Beta Was this translation helpful? Give feedback.
-
|
hey @monorkin I have a working solution I can create a PR, but before that I would like to ask, should we autoplay the message upon delivery, or that action should be explicit, i.e. should we play it only when user clicks on it? Here is the preview (I created sound bar animation as a nice touch): Also I was wondering do we want to have some playback time, i.e. seconds left...so that the user could have a grasp about the length of the audio message? Thx |
Beta Was this translation helpful? Give feedback.
-
|
Hey :) I here is the final version. I will create a PR for it: |
Beta Was this translation helpful? Give feedback.
-
|
I implemented your PR @milos-dukic and found it lacking the ability to stop/start the audio. It would just play through. I tried the suggestion that you made, @monorkin ("extending the attachment partial to render an audio player if the attached file can be played in the browser") and it works perfectly. I had to tweak a couple styles to widen it so that it showed the audio timeline and not just the play/pause button, but it's working great. Happy to submit a PR if desired. |
Beta Was this translation helpful? Give feedback.


Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Currently, when an audio file (e.g., .m4a, .mp3) is shared in chat, it appears only as a downloadable file without playback controls
It would improve usability and consistency if audio messages had inline previews, similar to how videos and PDFs are handled, allowing users to play the audio directly within the chat
Current preview:

Beta Was this translation helpful? Give feedback.
All reactions