Change playbackRate while playing
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 490
- Forks
- 80
- PR merge metrics
- No merged PRs in 30d
Description
I want to change the playback rate, but i can not call this.setState of a playback value because this will call render method and start the sound again.
As you can se https://jsbin.com/UGIxoJis/1/edit?html,output you can modify the playbackRate while a media is being played.
How can I access to the current sound element to modify his playbackRate?
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 reproducing the behavior in the linked JSBin and then inspect the component's playback handling to find how the current sound element is exposed. The work is done when playbackRate can be changed while audio is playing without triggering a restart or render-related interruption.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react
- Domain
- audio-video-rtc, frontend
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100