RocketChat / RocketChat/fuselage
AudioPlayer: Seek action lag and no optimistic UI causing bad UX
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 162
- Forks
- 258
- Avg merge
- 2d 23h
- Merged PRs (30d)
- 24
Description
Description
Currently the AudioPlayer component has two noticeable bugs causing bad user experience.
- Audio seeking functionality lag, when seeking in any direction the UI doesn't update. The bug happens in two states of the player.
- Play State: The UI takes some time to update which causes confusion for user about what is happening.
- Pause Sate: The issue remains same but the update happens after the player is switched to pause state.
- The initial state when the media is still loading the slider width is 0 and all the interactions as accessible to user causing a confusion weather the media is loading/broken.
Steps to reproduce
Both the issues can be reproduced as shown in the above clips in the main page.
Insert an image/gif
- Issue 1.1:
https://github.com/user-attachments/assets/9d6539b3-c4aa-4265-9432-63c8dfef83e8
- Issue 1.2:
https://github.com/user-attachments/assets/63d7c755-c240-408d-8e72-6682846d53ca
- Issue 2.0: Loading state
https://github.com/user-attachments/assets/ac5f35a5-d3f4-43e1-aaff-4a283ed907a5
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the AudioPlayer component and tracing how seeking and loading state update the slider. Reproduce the two seeking cases and the initial loading state, then make the UI respond immediately during seeks and clearly indicate that the media is still loading; verify the behavior against the supplied clips.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- audio-video-rtc, frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100