videojs / http-streaming

HLS, DASH, and future HTTP streaming protocols library for video.js
https://videojs-http-streaming.netlify.app/
Other
2.46k stars 420 forks source link

Video JS HLS jumps back to previous segment during live stream #1202

Closed harvister closed 2 years ago

harvister commented 2 years ago

Description

I have reproduced an error with video js where playback will jump to the previous segment in an infinite loop, or jump back a few times, and then jump forward past all the content it missed during a live stream. This example is audio-only stream, but it also occurs with other video streams as well.

Seems to only occur in Chromium browsers. Also seems odd that vjs debug logs aren't working in Chromium browsers as well.

I have tested that the following players will play back this fine

If you can point me to an area in the source code where you think there could be an issue it would be much appreciated

Sources

Reproduced Error

Steps to reproduce

  1. Click the link to the reproduced error
  2. Go to the "Player stats" tab
  3. Watch as the current time and segment jump backwards in an infinite loop

Error output

No errors or warnings ever

videojs version

tested with several versions including video.js 7.14.3

videojs http-streaming version

v2.10.3

Browsers

video-archivist-bot commented 2 years ago

Hey! We've detected some video files in a comment on this issue. If you'd like to permanently archive these videos and tie them to this project, a maintainer of the project can reply to this issue with the following commands:

welcome[bot] commented 2 years 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.

gkatsev commented 2 years ago

Looks like https://github.com/videojs/http-streaming/pull/1195 fixes this issue as well.

harvister commented 2 years ago

v2.11.0 fixes the jump back / infinite looping issue, but there is a distinct audio crack where the jump back used to happen. Not sure if anything can be done about this.

https://v2-11-0--videojs-http-streaming.netlify.app/?debug=true&autoplay=false&muted=false&fluid=false&minified=false&sync-workers=false&liveui=true&llhls=false&url=https%3A%2F%2Fstatic.harvister.net%2Fbugs%2Fjump_back_audio%2Findex.m3u8&type=application%2Fx-mpegURL&keysystems=&buffer-water=false&exact-manifest-timings=false&pixel-diff-selector=false&override-native=true&preload=auto&mirror-source=true

video-archivist-bot commented 2 years ago

Hey! We've detected some video files in a comment on this issue. If you'd like to permanently archive these videos and tie them to this project, a maintainer of the project can reply to this issue with the following commands:

stale[bot] commented 2 years ago

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.