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

HTTP range request is LAST byte not SIZE !!!!! #485

Merged
merged 1 commit into from Dec 24, 2020

Conversation

philippe44
Copy link
Contributor

That explain missings last seconds on mp4.

I'm really sorry, I could have seen that any day since June, but it had to be today, one day after the release of 8.1

I'm a (very angry) muppet

That explain missings last seconds on mp4

I'm a (very angry) muppet
Comment on lines 734 to +735
if ($first) {
$request .= $CRLF . 'Range: bytes=' . ($first || 0) . '-' . ($song->track->audio_size || '');
$request .= $CRLF . 'Range: bytes=' . ($first || 0) . '-';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it ok to only define the first byte, but not end?

And the ($first || 0) is a bit redundant, as there's the if ($first) check first.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I can change that (the first) as well. That the result of a different code structure at the beginning

@mherger mherger merged commit 2c339c3 into LMS-Community:public/8.1 Dec 24, 2020
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

Successfully merging this pull request may close these issues.

None yet

3 participants