PeerTube
PeerTube copied to clipboard
Live streaming: Cannot get sha256 segments SyntaxError: Unexpected end of JSON input
Describe the current behavior
When a live segments is corrupted or not found it creates too many loops of the same fetching segment
polyfills.4dee205ae13c48d1.js:1 GET https://secure.direct-live.net/live/segments-sha256/9fac13a4-0aab-4db5-bf66-a891d229b58b 404 Cannot get sha256 segments SyntaxError: Unexpected end of JSON input
Steps to reproduce
- start a live
- restart web server to create some network latency
- check the console log,
Describe the expected behavior
Maybe an incrementation of 5 or 10 to refresh the segment will avoid the player to be too late from the current segments on the server? or maybe keep more segments longer on the server?