Update wavesurfer's progress when progress changed using HTML controls
See original GitHub issueDescription:
When using WaveSurfer with backend MediaElement
, the progress is not updated when audio is paused and user changed the progress using HTML controls.
Expected behaviour:
When using MediaElement
and the audio (or video) is paused and the user changes progress using HTML controls, the wavesurfer should update it’s own progress.
Wavesurfer.js version(s):
2.1.1
Browser version(s):
Chrome v71
Code needed to reproduce the issue:
var ws = WaveSurfer.create({
container: '#waveform',
backend: 'MediaElement',
mediaType: 'audio',
mediaControls: true,
});
ws.load(document.querySelector('audio'));
https://codepen.io/michalszorad/pen/WLxqJv
Use behaviour needed to reproduce the issue:
Go to codepen link, change the progress using HTML controls and see that the wavesurfer’s progress has not updated.
Issue Analytics
- State:
- Created 5 years ago
- Comments:8
Top Results From Across the Web
WaveSurfer Methods
wavesurfer.js is an HTML 5 audio player and waveform visualizer, made with JavaScript and Web ... getCurrentTime() – Returns current progress in seconds....
Read more >How to display remaining time in realtime with wavesurfer.js
UPDATE 2. To change the timeline plugin colors, use the timeline plugin options. You can control 4 different colors like this:
Read more >Wave Surfer / Brett Cooper - Observable
- [Regions plugin](https://wavesurfer-js.org/plugins/regions.html): Adds ability to display and interact with audio regions. Regions are visual overlays that ...
Read more >How To Display Audio Waveform In A Website Using HTML ...
Hi guys, in this video, I will show you how to add music waveform in a website using HTML, CSS, and JavaScript. We...
Read more >Add audio Wave effect to your website using WaveSurfer.js
In this video we will be learning how to add audio wave effect into ... wavesurfer.js is an HTML 5 audio player and...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Sorry, I misspoke: by “histogram” I meant the waveform visualization. This does seem to work.
@uhoh-itsmaciek can you give #1631 a try?