You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Record plugin lists an event called 'record-data-available', which is supposed to continously fire during recording and contain
a blob. Instead this event is never triggered, despite confirming it should work according to the docs as well as the source code for the version I am using (everything looks OK, I am not sure what the bug is).
The plugin itself works as I can stop and download audio, visualize the waveform and the record-progress event is cleanly triggered, which I use to display a duration timer.
Actual application logic resides in a <script defer type="module"> block.
Minimal code snippet
// Initialize the Record pluginrecord=wavesurfer.registerPlugin(RecordPlugin.create({scrollingWaveform: true,renderRecordedAudio: false}));record.on('record-data-available',(blob)=>{console.log('test');});record.on('record-progress',(time)=>{updateProgress(time);});
Expected result
A lot of 'test' messages in the console
Obtained result
Event never triggered, hence 0 messages in console log
The text was updated successfully, but these errors were encountered:
Apparently, passing a mediaRecorderTimeslice option to the create method fixes this and it now works flawlessly.
This did waste a lot of my time though and I believe it should be prominently noted in the documentation, since one would expect there to be a default value as data is recorded regardless if we pass the mediaRecorderTimeslice property or not, yet the event is not triggered.
Bug description
The Record plugin lists an event called 'record-data-available', which is supposed to continously fire during recording and contain
a blob. Instead this event is never triggered, despite confirming it should work according to the docs as well as the source code for the version I am using (everything looks OK, I am not sure what the bug is).
The plugin itself works as I can stop and download audio, visualize the waveform and the
record-progress
event is cleanly triggered, which I use to display a duration timer.Environment
Plain HTML file - scripts loaded as
Actual application logic resides in a
<script defer type="module">
block.Minimal code snippet
Expected result
A lot of 'test' messages in the console
Obtained result
Event never triggered, hence 0 messages in console log
The text was updated successfully, but these errors were encountered: