question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Update wavesurfer's progress when progress changed using HTML controls

See original GitHub issue

Description:

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:closed
  • Created 5 years ago
  • Comments:8

github_iconTop GitHub Comments

1reaction
msakrejdacommented, Apr 27, 2019

Sorry, I misspoke: by “histogram” I meant the waveform visualization. This does seem to work.

0reactions
thijstriemstracommented, Apr 24, 2019

@uhoh-itsmaciek can you give #1631 a try?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found