Find Jobs
Hire Freelancers

problem with wavesurfer.js playing an mp3 file from Digital Ocean Spaces (S3 service)

$30-250 CAD

Zavřený
Zveřejněno přibližně před 3 roky

$30-250 CAD

Zaplaceno při doručení
I am using [login to view URL] to play an mp3 file (and build/show the waveform) on a webpage. It works fine when the mp3 file is on my website (on domain) But it does not work when I use the exact same mp3 file from Digital Ocean Spaces (and S3 service) I have set up the CORS requirements and the file downloads ok to the browser and there is no CORS error/rejection in Chrome .... But, [login to view URL] will not load and play the mp3 I am committed to using [login to view URL] as the music/waveform tool, BUT I need it to work from DO SPACES I have a simple test page set up that shows that [login to view URL] works fine using the mp3 file on my site, and does NOT work from the DO Spaces file It appears that the issue may be that the file I have uploaded to the Digital Ocean Spaces (S3) The upload is done with Python using the requests library: Here is the code for the upload: This function is called with these params: thisNewKey = the full path and filename to store it on the S3 as sourceFN = the local path to the file being uploaded ContentType = 'audio/mpeg' presignedURL = the url pulled back from the S3 to upload to The file upload goes successfully and the file shows in the DO Spaces S3 portal However, the file will not load on my web-page (middle link) I also uploaded an mp3 file via the upload button on the DO SPACES S3 portal .. That file works on my test web page - the right link This likely means that my upload code is producing a resulting uploaded file that the [login to view URL] audio component is not able to use # ============================================================================ def S3_UploadFilePreSigned( thisNewKey, sourceFN, ContentType, presignedURL): res = True txt = 'Ok' try: headers = {'Content-Type': ContentType} fileobj = open(sourceFN, 'rb') http_response = [login to view URL](presignedURL, headers=headers, files={'file': (thisNewKey, fileobj)}) [login to view URL]() if [login to view URL] == False: res = False txt = [login to view URL] except Exception as PE: print (PE) res = False return res, txt # ============================================================================
IČ projektu: 29189163

O projektu

3 nabídky
Vzdálený projekt
Aktivní před 3 roky

Chcete si vydělat nějaké peníze?

Výhody podávání nabídek na Freelancer

Stanovte si rozpočet a časový rámec
Získejte za svou práci zaplaceno
Načrtněte svůj návrh
Registrace a podávání nabídek je zdarma
3 freelanceři nabízejí v průměru $213 CAD za tuto práci
Avatar uživatele
Hi there, ★★★ JavaScript Expert ★★★ 6+ Years of Experience ★★★ I've read requirements and ready to debug & fix errors on your website. What we can do for you: ✔️ Add features in existing app. ✔️ Create rest api. ✔️ Convert javascript code into typescript. ✔️ Fix bugs in javascript, jQuery, nodeJS, typescript and reactJS. and anything else you want. I'll be glad to discuss project before start so let's chat. Thanks for your consideration. Best Regards, TechPlus Team
$250 CAD v 2 dnech
4,7 (215 recenze)
7,6
7,6
Avatar uživatele
Hello, How are you. I have read your suggestion carefully. I am an expert in python, downloading video. I have 5 years experience working in these job. I can give you the perfect results with this project. Please chat with me for more discussion. Thanks and regards.
$250 CAD v 4 dnech
5,0 (9 recenze)
4,5
4,5

O klientovi

Pochází z CANADA
Duncan, Canada
0,0
0
Ověřená platební metoda
Členem od úno 6, 2021

Ověření klienta

Díky! Poslali jsme vám e-mailem odkaz pro získání kreditu zdarma.
Při odesílání e-mailu se něco pokazilo. Zkuste to prosím znovu.
Registrovaných uživatelů Zveřejněných projektů
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Načítání náhledu
Bylo uděleno povolení ke geolokaci.
Vaše doba přihlášení vypršela a byli jste odhlášeni. Přihlaste se znovu.