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

scanURL waits for bitrate when startTime is needed #632

Merged

Conversation

philippe44
Copy link
Contributor

When scanning a mp3 stream, we have to wait for bitrate which might be found in body, not in header. So we wan't do scan in background, we have to wait

When scanning a mp3 stream, we have to wait for bitrate which might be found in body, not in header. So we wan't do scan in background, we have to wait
@michaelherger
Copy link
Member

What problem does this change solve? Is there any way I can test this change in behavior?

@philippe44
Copy link
Contributor Author

yes, use a mp3 podcast that is http, not https and have no redirect. Play it for >15s and then play if "from last position". Prior to this PR, it would restart from beginning because the bitrate would not be acquired before getNextTrack is called, i.e. before the bitrate is needed to calculate offset

@mherger mherger merged commit 1c36436 into LMS-Community:public/8.2 Jul 4, 2021
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