HLS Error : lastMatchedSample is undefined
Description
VideoJS doesn't play all segment and stop loading with javascript error. On Firefox : TypeError: lastMatchedSample is undefined On Chrome: Uncaught TypeError: Cannot read property 'pts' of undefined
Steps to reproduce
Go to https://www.koreus.com/test/videojs.html and play the video at 360p quality
Results
Expected
Playing all segments without stopping
Actual
VideoJS will stop playing at 0:12 , when loading 3rd segment (6 seconds segment duration)
Error output
On Firefox : TypeError: lastMatchedSample is undefined On Chrome: Uncaught TypeError: Cannot read property 'pts' of undefined
Additional Information
I have used ffmpeg to make the stream (fMP4 single file) with 6 seconds segment duration -hls_time 6 -hls_segment_type fmp4 -hls_flags single_file
versions
videojs
7.5.4
browsers
Chrome 74 Firefox 67
OSes
Windows, Linux and macOS
plugins
videojs-contrib-quality-levels videojs-hls-quality-selector
👋 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.
I had a very similar issue as you have reported. In my case, it went away when I packaged my media with Shaka Packager instead of ffmpeg, but that was just a fluke. There's an open issue in mux.js that maybe is affecting you as well.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.