Open Dexmaster opened 4 days ago
👋 Thanks for opening your first issue here! 👋
If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can. To help make it easier for us to investigate your issue, please follow the contributing guidelines.
Another observation, for now I have a fix for myself so no hurry.
To fix it I rolled back video.js to v7 and using latest hls.js as a plugin. e.g. video.js 7.21.6 + hls 1.5.17 + this plugin source + small modification to plugin code to just exctract main and plugin source.
It works with everything I needed.
If anyone will need example tell me I can create a demo.
Description: Processing audio from some .m3u8 stream places every segment at start of playback. (even if there are 3-4 segments)
Longer description: If you check Buffered Ranges: Duration and startOfSegment for audio2/2 you will see the issue. (also I believe SegmentLoader[main] >,timinginfo: audio - start/end is also wrong)
Another observation, for this case segmentInfo.segment.syncInfo has all the correct info, the broken info is segmentInfo.startOfSegment...
From logs when it tries to play segment:
Reduced test case: Here
Steps to reproduce: Click play in test case and check sound/network/debug Audio Buffered is length of the biggest audio chunk in .m3u8 (it buffers all audio chunks on top of each other at the start)
P.S. Stream works well on hls.js demo but I would prefer to use it with video.js as I setup 5 different station options on my Home Assistant stream page and not all of them are hls.
Errors: No errors in console.
What version of Video.js are you using? Reproducible in all versions from 7.0.0 to 8.20.0 (tested at least 8 different versions in each)
What browser(s) including version(s) does this occur with? Chrome, Firefox, Edge
What OS(es) and version(s) does this occur with? Win 10 and 11, Android?
Other observations: Stream works perfectly well in hls.js demo and VLC.