-
-
Notifications
You must be signed in to change notification settings - Fork 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
Audio file timestamp doesn't stop counting at the end of playback #21796
Comments
I suspect the correct behaviour is for the playhead & time to reset to zero and stay there once playback has reached the end (instead of going back to zero and then counting up again which is what it sounds like it happening). Perhaps this could be a good issue for a relatively new person to help with. src/components/views/messages/MAudioBody.tsx / src/components/views/audio_messages/AudioPlayerBase.tsx in react-sdk are probably the files to start with. |
Also, the file should be able to be replayed, of course 😉 |
I noticed something else while drafting a PR for this issue. If you let the player keep counting after the song's finished, switch to another room and switch back it works as normal i.e Stoppping at zero and when the play button is clicked, it plays normally so this may be something to look out for. |
I'd also like for this issue to be assigned to me but given the information at https://github.com/vector-im/element-meta/wiki/Guidance-on-assigning-issues I'll hold that off until I submit my draft PR. Thought I'd mention this here in case anyone else wants to work on this issue. |
The issue here is that the counter does not only stop at the end of playback, but also the audio cannot be replayed unless the page is manually reloaded. |
After digging around for a while, it seems this is a bit above me and I will not be able to continue working on this, anyone who wants to work on it can pick it up. |
can anyone please explain the problem clearly, i'm unable to get the issue. |
I want to work on it. Please assign me this issue. |
Thank you for your interest in this issue @yoda-76 . We will normally not assign the issue to an external contributor until they have provided at least a draft PR which is taking the right direction. For further details, see our guidance on assigning issues. If you have any technical questions about this issue, you can ask for help in #element-dev:matrix.org . |
@chandra1899 I edited the explanation for you so that you can understand the issue. |
@ABHIXIT2 Do you mean that the issue is no longer reproduced? I confirmed the issue still could be reproduced on my side. |
I think it has something to do with the app because it wasn't happening but after installing app and playing audio there it started happening. I will try to solve the problem and if there anything i need to know just lemme know... @luixxiul Edit : This is happening for above 5 min clips |
I am unable to find this file in the source code src/components/views/messages/MAudioBody.tsx |
@t3chguy I looked at https://github.com/matrix-org/matrix-react-sdk/blob/develop/src/components/views/messages/MAudioBody.tsx. Can a reset Function be added to this react component? |
would like to work on this, but new so would love to collaborate and work together on this issue if anyone is interested! |
is the issue still open or is anyone working in it? |
yes i can still reproduce the same |
Hi @t3chguy @luixxiul so a dirty work around would be comparing the currentTime and duration and firing the ended callback |
Is this issue still there, because I cannot reproduce this, I tried to reproduce in the Chrome, Brave, Firefox but I wasn't able to do so. Can anybody confirm ? Attaching the POC video for reference. Element._.audio-file-timestamp-21796.-.Brave.2024-01-08.00-31-05.mp4 |
i am still able to reproduce @nallapaneni-sreehari www_screencapture_com_2024-1-8_12_45.mp4 |
Steps to reproduce
Outcome
What did you expect?
Either (a) the song would be played again from the start or (b) the counter would stop counting at the end of the song. I am not sure which one is expected.
What happened instead?
The counter was reset to zero and started counting, but the song itself was not replayed.
player.mp4
Also, unless the room is reloaded, the audio file cannot be even replayed on the player.
Operating system
Debian
Browser information
Firefox
URL for webapp
localhost
Application version
develop
Homeserver
No response
Will you send logs?
No
The text was updated successfully, but these errors were encountered: