When I use a custom loader, hls to load key or load frag, the content.type is always undefined #6666
Open
5 tasks done
Labels
Bug
Needs Triage
If there is a suspected stream issue, apply this label to triage if it is something we should fix.
What version of Hls.js are you using?
1.5.15
What browser (including version) are you using?
Edge
What OS (including version) are you using?
win11
Test stream
No response
Configuration
Additional player setup steps
No response
Checklist
Steps to reproduce
hls.value = new Hls(
{
loader: $customLoader as any,
autoStartLoad: false,
lowLatencyMode: false,
maxBufferLength: 30,
maxMaxBufferLength: 60,
backBufferLength: 30,
maxBufferSize: 60 * 1000 * 1000,
maxBufferHole: 0.5,
startFragPrefetch: true,
Expected behaviour
1.Each context has its own type
2.I can't find a way to load a custom key
3.The fragment stream is loaded with the key, and the fragment is loaded when the key is not returned
4.My m3u8 file :
#EXTM3U
#EXT-X-VERSION:3
#EXT-X-TARGETDURATION:7
#EXT-X-MEDIA-SEQUENCE:0
#EXT-X-PLAYLIST-TYPE:VOD
#EXT-X-KEY:METHOD=AES-128,URI="keys/encryption.key",IV=0xe2640f2cbb490f4fa29103ba2cd4afff
#EXTINF:7.200000,
1080P/000.ts
#EXTINF:4.800000,
1080P/001.ts
#EXTINF:4.800000,
1080P/002.ts
#EXTINF:4.800000,
1080P/003.ts
#EXTINF:3.600000,
1080P/004.ts....
What actually happened?
In order to be more specific, I give part of the code, because the content.type has not been correct, so I forced to mediaSegment, part of the comment is Chinese, please ignore:
```
this.xhr.onload = async () => {
Chrome media internals output
No response
The text was updated successfully, but these errors were encountered: