You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use hls js in Vue project like this: if (Hls.isSupported()) { const hls = new Hls() hls.loadSource(this.videoSource) hls.attachMedia(this.player.media) window.hls = hls }
The stream has correct Access-Control-Allow-Origin headers (CORS)
There are no network errors such as 404s in the browser console when trying to play the stream
Steps to reproduce
The video is loading on localhost, but not loading when built and deployed.
It's not a CORS problem, cause I can see .m3u8 file and the first hls-part loaded with status 200.
Expected behaviour
Video loaded the same way as on localhost or demo page
What actually happened?
Mentioned errors, metadata loaded successfuly
Console output
In console with debug mode I can see this:
` [log] > Debug logs enabled for"Hls instance"index.js:1 [log] > stopLoadindex.js:1 [log] > loadSource:https://s3.eu-central-1.amazonaws.com/interview.top.storage/media/videos/--rNQx/.m3u8index.js:1 [log] > [stream-controller]: Trigger BUFFER_RESETindex.js:1 [log] > attachMediaindex.js:1 [log] > [level-controller]: manifest loaded, 1 level(s) found, first bitrate: 0index.js:1 [log] > 1 bufferCodec event(s) expectedindex.js:1 [log] > startLoad(-1)index.js:1 [log] > [level-controller]: switching to level 0 from -1index.js:1 [log] > [stream-controller]: STOPPED->IDLEindex.js:1 [log] > [subtitle-stream-controller]: STOPPED->IDLEindex.js:1 [log] > [stream-controller]: Level 0 loaded [0,2205], cc [0, 0] duration:4412index.js:1 [log] > [buffer-controller]: Updating Media Source duration to 4412.000index.js:1 [log] > [buffer-controller]: Media source openedindex.js:1 [log] > [stream-controller]: Loading fragment 0 cc: 0 of [0-2205] level: 0, target: 0index.js:1 [log] > [stream-controller]: IDLE->FRAG_LOADINGindex.js:1 [log] > demuxing in webworkerindex.js:1 [log] > [transmuxer-interface, main]: Starting new transmux session for sn: 0 p: -1 level: 0 id: 1 discontinuity: true trackSwitch: true contiguous: false accurateTimeOffset: true timeOffset: 0 initSegmentChange: trueindex.js:1 [log] > [stream-controller]: Loaded fragment 0 of level 0f69e4147-91ba-487c-b8d5-4abfe13ec743:1 [log] > Debug logs enabled for"main"index.js:1 [log] > [mp4-remuxer]: ISGenerated flag resetindex.js:1 [log] > [mp4-remuxer]: initPTS & initDTS resetindex.js:1 [log] > [mp4-remuxer]: reset next timestampindex.js:1 [log] > manifest codec:undefined, ADTS type:2, samplingIndex:3index.js:1 [log] > parsed codec:mp4a.40.5, rate:48000, channels:2index.js:1 [warn] > Exception in webworker, fallback to inlinewarn @ index.js:1v.onerror @ hls.js:13024error (async)t @ hls.js:13022n._handleFragmentLoadProgress @ hls.js:8538i @ hls.js:2161(anonymous) @ hls.js:2408Promise.then (async)n._doFragLoad @ hls.js:2405n._loadFragForPlayback @ hls.js:2163n.loadFragment @ hls.js:2150...f69e4147-91ba-487c-b8d5-4abfe13ec743:1 Uncaught TypeError: r.assert is not a function at e.remuxAudio [log] > [transmuxer.ts]: Flushed fragment 0 of level 0 Uncaught TypeError: r.assert is not a function at e.remuxVideo`
Chrome media internals output
No response
The text was updated successfully, but these errors were encountered:
a-ruban
added
Bug
Needs Triage
If there is a suspected stream issue, apply this label to triage if it is something we should fix.
labels
Jan 5, 2023
I finished with forking hls.js repo, commenting all console.assert stuff, building library and installing hls.js to my project via github. Now it working just fine.
As a suggestion, I saw transform-remove-console plugin in hls.js webpack config, maybe it makes sense configure it to remove this .assert stuff if it's not neccessary.
What version of Hls.js are you using?
1.2
What browser (including version) are you using?
Chrome / Firefox (doesn't matter)
What OS (including version) are you using?
Linux Mint 21
Test stream
https://hls-js.netlify.app/demo/?src=https%3A%2F%2Fs3.eu-central-1.amazonaws.com%2Finterview.top.storage%2Fmedia%2Fvideos%2F--rNQx%2F.m3u8&demoConfig=eyJlbmFibGVTdHJlYW1pbmciOnRydWUsImF1dG9SZWNvdmVyRXJyb3IiOnRydWUsInN0b3BPblN0YWxsIjpmYWxzZSwiZHVtcGZNUDQiOmZhbHNlLCJsZXZlbENhcHBpbmciOi0xLCJsaW1pdE1ldHJpY3MiOi0xfQ==
Configuration
Note: i use small hls_duration - 2 seconds (works fine on localhost and demo page)
Additional player setup steps
I use hls js in Vue project like this:
if (Hls.isSupported()) { const hls = new Hls() hls.loadSource(this.videoSource) hls.attachMedia(this.player.media) window.hls = hls }
Checklist
Steps to reproduce
Expected behaviour
Video loaded the same way as on localhost or demo page
What actually happened?
Mentioned errors, metadata loaded successfuly
Console output
Chrome media internals output
No response
The text was updated successfully, but these errors were encountered: