Commit 20b87f3
fix: force HLS player to start from live edge on every page load
- Set autoStartLoad: false to prevent hls.js from loading segments
before MANIFEST_PARSED, where we explicitly call startLoad(-1) to
begin at the live edge
- Add Cache-Control: no-cache to XHR requests so the browser always
revalidates playlists/segments with the server instead of serving
stale HTTP-cached responses
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent c6b20ec commit 20b87f3
1 file changed
Lines changed: 7 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
40 | 45 | | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
| 49 | + | |
| 50 | + | |
48 | 51 | | |
49 | 52 | | |
50 | 53 | | |
| |||
0 commit comments