Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate the wave from URL. #39

Closed
sanketk2020 opened this issue Aug 17, 2022 · 5 comments
Closed

Generate the wave from URL. #39

sanketk2020 opened this issue Aug 17, 2022 · 5 comments

Comments

@sanketk2020
Copy link

Hello,

I tried by downloading the audio file and saving it locally and then assign the URL to WaveformView but I get no results.

I get this error : ERROR loading asset / audio track

Is there any other way to generate the wave from the URL?

Thanks

@dmrschmidt
Copy link
Owner

dmrschmidt commented Aug 17, 2022 via email

@dmrschmidt
Copy link
Owner

dmrschmidt commented Aug 17, 2022

Also, did you have a look at this: scaffolded example for downloading a remote URL from issue #22 ?

@dmrschmidt
Copy link
Owner

Closed due to inactivity. Feel free to re-open if this is still an issue.

@sanketk2020
Copy link
Author

Yes, the file plays normally in an AVPlayer but I had an issue with accessing the URL;
before I access the URL like this

URL(string: "XYZ")

but then I realize and change the way of accessing the URL like this

URL(fileURLWithPath: audioPath)

and this way works like charm.

Anyways thanks for the reply.

@dmrschmidt
Copy link
Owner

I'm glad to hear it works now :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants