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

Request range to determine seekability #23

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

iamszabo
Copy link

I was unhappy with my previous PR and wanted to do more digging into when an audio file is seekable. Most other players (like JWPlayer we use on GP.com) initially sent a Range=0-1 request to force a response from the server side. It returns either a 206 (Partial content), which means it is seekable or 200 with a possible Accept-Ranges=none which means it is not.

For example, VLC follows a similar logic where it determines seekability based on 206 status code.

@trafico-bot trafico-bot bot added the 🔍 Ready for Review Pull Request is not reviewed yet label Dec 16, 2022
@trafico-bot trafico-bot bot added ✅ Approved Pull Request has been approved and can be merged and removed 🔍 Ready for Review Pull Request is not reviewed yet labels Dec 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✅ Approved Pull Request has been approved and can be merged size/S
Development

Successfully merging this pull request may close these issues.

3 participants