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
MP4 regex doesn't work for URLs with query string #3756
Comments
@GitBoudewijn please can you try now on https://deploy-preview-3758--hls-js-dev.netlify.app/ (#3758)? |
Hi @GitBoudewijn, Can you provide a sample stream with SIDX that requires this fix? It's important for us to have a sample steam for these reasons
|
Sorry I don't actually have a real stream like this. I just noticed this while looking at the source code because I'm trying to understand how SIDX works myself. I did find this dash playlist which contains mp4 files with SIDX: But when I try this:
This happens:
Edit: I looked at the source code again and I understand how it works now. When there's no So maybe you could first check if the number of fragments is equal to the number in the SIDX ( |
I merged the regex patch, but to dig deeper we'll need a new issue outlining the requirements or bug with a valid sample stream. The dash.edgesuite to HLS example above does not look to be valid. |
<title>Teste de Canal</title> $doregex[gloriosotv]|User-Agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36 gloriosotv (https?://[^\s]+\.mp4) https://github.com/sandrojr1991/NOVELAS/releases/download/oclone/O.Clone.Capitulo.1.-.BY.SANDRO.STORE.mp4 https://i.imgur.com/MA24TG2.png Novelas me ajudem fazer esse regex funciona no kodi |
See the regex to detect MP4 fragments here:
https://github.com/video-dev/hls.js/blob/master/src/loader/m3u8-parser.ts#L62
const MP4_REGEX_SUFFIX = /\.(mp4|m4s|m4v|m4a)$/i;
This regex doesn't work if the file URL has a query string like xxx.m4s?y=1.
The text was updated successfully, but these errors were encountered: