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
ignore query when checking for mp4 url extension #3758
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice fix.
I don't have a lot of experience with SIDX streams. I'd like for the reporter who raised this to provide one, and for us to explore other ways of dealing with this (like: backtracking or changing the requirement for initSegment
to be defined when there is no MAP and SIDX is found).
I don’t understand fully what’s going on but given the warning it looks like this is attempting to handle faulty streams that missed the |
I think streams with SIDX don't need one, but then there is nothing to signal the stream is fmp4, so we're trying to infer that from the url... and set I'm bringing this up because i've seen too many solutions that infer information from a URL or exrtension and they are never perfect and always come back with new requirements (someone has a custom extension or defines the type in the query string) so if there is a way to deal with this in the transmuxer or stream controllers we wouldn't need this code or warning in the m3u8 parser. Not pushing back at all on this change. It's a solid improvement. It just raises the concerns of:
|
Cool
Yeh this stands out as being a bit weird |
This PR will...
Use the parse in
UrlToolkit
to extract just the path and use that for checking for the '.mp4' extension.Why is this Pull Request needed?
Currently if there's a query string the check fails.
Resolves issues:
fixes #3756
Checklist