Commit 15fb9ee
Local API: Implement SABR for VODs (FreeTubeApp#8047)
* Local API: Implement SABR for VODs
* * Allow max 3 player reloads for the same video before fallback to older DASH
* ! Fix data type for `playerTimeMs` (googlevideo 4.0.4)
* * Update player reload handling to restart player at the current timestamp
* * Do not count reload if player is loaded after that
* ! Fix access from nullable object
* * Remove code for debug only
* ! Workaround infinite backoff (mostly at the middle of playback
* ! Workaround infinite retry due to nextRequestPolicy (mostly at the middle of playback
* ! Fix no audio track selection when SABR used
* ! Fix no audio track selection when SABR used with less requests
* * Use Math.round instead of Math.trunc for start time / duration like googlevideo repo
* * Add requestNumber to SABR URL
* ! Fix SABR redirect handling
* ! Fix reload sometimes not working
* * Reload with less cumulative backoff requested (5 > 3)
* * Implement poToken fallback (visitorData bind > videoID bind
* ! Fix progress saving run for video reloading in the middle
* * Implement proper poToken selection
* - Remove accidentially introduced debug code
* * skip the call to concatenateChunks if it isn't needed
* * Make changes for VS Code
* * Update new toast messaages to be translatable
* * Enable SABR by default
* * Load less data when requesting video data
* ! Workaround player stuck at the end on windows
Due to duration somehow being slightly longer than what's available
* ! Fix null endSegmentIndex handling
* ~ Update comment about workaround
* ! Fix player stuck at the end of video with shortest duration
due to use of duration from first format with format of shorter duration selected for playback
* ! Avoid using `player` when it's null (on reload)
* ~ Fix type definition
* ! Workaround player reload issue
* * Make new setting related text translatable & update text
* Add support for Voice Boost formats
* ! Fix legacy format handling
* Fix voice boost being selected as the default audio track
---------
Co-authored-by: efb4f5ff-1298-471a-8973-3d47447115dc <73130443+efb4f5ff-1298-471a-8973-3d47447115dc@users.noreply.github.com>
Co-authored-by: absidue <48293849+absidue@users.noreply.github.com>1 parent 6cd05c3 commit 15fb9ee
File tree
18 files changed
+3039
-227
lines changed- _scripts
- src/renderer
- components
- ExperimentalSettings
- ft-shaka-video-player
- helpers
- api
- player
- store/modules
- views/Watch
- static/locales
18 files changed
+3039
-227
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
| 35 | + | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
| |||
137 | 138 | | |
138 | 139 | | |
139 | 140 | | |
140 | | - | |
| 141 | + | |
141 | 142 | | |
142 | 143 | | |
143 | 144 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
6 | 8 | | |
7 | 9 | | |
8 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| 66 | + | |
66 | 67 | | |
67 | 68 | | |
68 | 69 | | |
| |||
Lines changed: 25 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
19 | 29 | | |
20 | 30 | | |
21 | 31 | | |
| |||
27 | 37 | | |
28 | 38 | | |
29 | 39 | | |
30 | | - | |
| 40 | + | |
31 | 41 | | |
32 | 42 | | |
33 | 43 | | |
34 | 44 | | |
35 | 45 | | |
36 | 46 | | |
| 47 | + | |
| 48 | + | |
37 | 49 | | |
38 | 50 | | |
39 | 51 | | |
| |||
69 | 81 | | |
70 | 82 | | |
71 | 83 | | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
72 | 96 | | |
73 | 97 | | |
74 | 98 | | |
0 commit comments