-
Notifications
You must be signed in to change notification settings - Fork 17
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
start and end time #12
Comments
So I get these info with
where
where the last bytes is of course the file length. Having this settings I have these {
"Content-Length": 4724126,
"Content-Type": "audio/mpeg",
"Access-Control-Allow-Origin": "*",
"Access-Control-Allow-Methods": "POST, GET, OPTIONS",
"Access-Control-Allow-Headers": "POST, GET, OPTIONS",
"Accept-Ranges": "bytes",
"Content-Range": "bytes 120515-240260/4724126"
} Problem is that it does not work then i.e. it does not stream any contents so what is wrong here? |
[UPDATE] My latest attempt was using the suggested { 'Content-Length': 5751405,
'Content-Type': 'audio/mpeg',
'Access-Control-Allow-Origin': '*',
'Access-Control-Allow-Methods': 'POST, GET, OPTIONS',
'Access-Control-Allow-Headers': 'Range',
Expires: 0,
Pragma: 'no-cache',
'Cache-Control': 'no-cache, no-store, must-revalidate',
'Accept-Ranges': 'bytes',
'Content-Range': 'bytes 120429-240237/5751405' } as referred in mozilla/pdf.js#3150 and in mozilla/pdf.js#4530 (comment) |
Thanks for the update. Closing it for now then. |
Assumed that as you suggests that media server can stream from a specific frame position as for here #6
it's not clear to me how to handle this on the client side. I mean I have
start
andend
times in seconds. Of course I have the mp3 file info fromffprobe
so I should calcolate by my self the frames and cut the audio file before then passing it to the mediaserver?In that case it's just a cut with
ffmpeg
but it would prefer to do this in streaming without cutting the file.Since you are using the method
getRange
likeI assume I could send you a
req.headers.range
to support this, right? If so could you make an example of the range, it seems it's like a bytes range separated with a-
, so it's to me likeThank you.
The text was updated successfully, but these errors were encountered: