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.

Waveform crashing when trying to load audio file from Amazon S3

See original GitHub issue

Wavesurfer.js version(s):

Waveform version: 4.2.0

Browser and operating system version(s):

Brave Browser on Ubuntu 20.04 LTS

Code needed to reproduce the issue:

same code as described in the documentation. (Please reduce your code as much as possible and only post the minimum code needed to reproduce the issue. A Code pen is an excellent way to share such code)

Use behaviour needed to reproduce the issue:

  1. Uisng wavesurfer.load(audioFileS3Url)
  2. working for 1st time when page reloads.
  3. when reloading page again, it’s not working this time. page is getting hung and crashing after around 10 seconds no idea why.
  4. I am not facing this issue when I am loading audio file from my current website path itself.
  5. Tried with both the backend options => ‘MediaElement’ and ‘WebAudio’
  6. I had to add fetchRequest.headers["Access-Control-Allow-Origin"] = "*" to get away with origin cross origin issue.

What might be the issue? Lemme know if more clear details or any other details need to be provided for debugging. Thank you!

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:9

github_iconTop GitHub Comments

1reaction
techiexplorercommented, Nov 28, 2020

Yeah sure, will try and update you on this, thanks!

Get Outlook for Androidhttps://aka.ms/ghei36


From: Maria Zuccarà notifications@github.com Sent: Saturday, November 28, 2020 5:53:53 PM To: katspaugh/wavesurfer.js wavesurfer.js@noreply.github.com Cc: Iftekharuddin Mohammed farhan_mohammed98@outlook.com; Author author@noreply.github.com Subject: Re: [katspaugh/wavesurfer.js] Waveform crashing when trying to load audio file from Amazon S3 (#2105)

Can you try to pass the audio peaks (also fake), to try to understand if the problem is in the audio resource of in drawing the waveform?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/katspaugh/wavesurfer.js/issues/2105#issuecomment-735224943, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AGH5CUK55E7CWHER26IPROTSSDTVTANCNFSM4TSHPVRA.

0reactions
entonbibacommented, Jan 27, 2021

@techie-explorer await fetch any reason you are using this? Also have a look at this aws article regarding streaming and s3 files. https://aws.amazon.com/blogs/developer/streaming-amazon-s3-objects-from-a-web-server-2/

Read more comments on GitHub >

github_iconTop Results From Across the Web

Resolve errors uploading data to or downloading data ... - AWS
I want to download data from Amazon Aurora and upload it to Amazon S3. How can I resolve an error I received while...
Read more >
Waveform 11 OEM Crashes constantly - Tracktion Forum
The whole thing crashes when you try to eneable/disable the MIDI ports. ... In some cases, you put the "audio" in one track,...
Read more >
Audio in the Browser: Horrors and Joys - Learning - Source
I'm trying to develop with audio files, and they are not playing correctly locally but work just fine on staging/production. What's the ...
Read more >
FAQ 3 - Using Transcribe! - Seventh String Software
"Why can't I load the XSC file saved by Transcribe! into my sound file editing or playing software, or burn it to audio...
Read more >
Amazon S3 and WavePlayer: the perfect configuration
If you want WavePlayer to have access to the audio files stored in your S3 bucket, you must list HEAD and GET as...
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