koajs / discussions

KoaJS Discussions
2 stars 2 forks source link

Hosting mp3 file #38

Open Ch0ikyle opened 4 years ago

Ch0ikyle commented 4 years ago

I'm coding API server to be used in mp3 app. I've used koa-send, koa-static, and just setting mp3 file to response-body.

But, no matter what API the app uses, the app stops. When I sent the length of the MP3 file separately because the app did not seem to accept the length of the MP3 file, it worked on iOS but not on Android.

If I post the same MP3 file on S3 and send request to that URL, it worked well, so I can't understand what the problem is.

Also, if I play music on Safari using my API, it comes out as a live broadcast. (using other sites, it comes in the form of mp3)

If it's a problem that you don't know how long it's playing, why is it the same file, but not on other sites, and not on my API?

Other storage site:

other storage site

My API:

my API