mspae / react-wavesurfer

React component wrapper for wavesurfer.js
BSD 3-Clause "New" or "Revised" License
108 stars 46 forks source link

Accessing region-created event #68

Closed Bran1304 closed 7 years ago

Bran1304 commented 7 years ago

Hi there,

Is there any way I can access the region-created event from wavesurfer.js's regions plugin?

Thanks

Bran1304 commented 7 years ago

I just figured out the answer to this. For anybody who wants to access this event from wavesurfer.js, add this to your onReady method:

args.wavesurfer.on('region-created', function(){ console.log(' region created') })