mirror of
https://github.com/R0m1k3/xtremflow.git
synced 2026-10-15 19:28:16 +02:00
feat: implement Turbo-Start stream acceleration
- Add direct MPEG-TS support and optimized HLS tuning - Implement low-latency sync and instant bitrate selection - Achieve TiviMate-like zapping speed by reducing initial buffers
This commit is contained in:
1 parent
736ab0f51c
commit
0ca6f96710
5 files changed
+67
-18
No files matched your search
+13
-1
@@ -250,7 +250,19 @@
|
||||
return false;
|
||||
}
|
||||
|
||||
const hls = new Hls({ maxBufferLength: 45, enableWorker: true });
|
||||
const isTurbo = urlParams.get('turbo') === 'true';
|
||||
|
||||
const hls = new Hls({
|
||||
maxBufferLength: isTurbo ? 30 : 45,
|
||||
enableWorker: true,
|
||||
liveSyncDurationCount: isTurbo ? 2 : 4,
|
||||
// Turbo-Start specific
|
||||
startLevel: isTurbo ? 0 : -1,
|
||||
initialLiveManifestSize: 1,
|
||||
abrEwmaDefaultEstimate: 500000,
|
||||
manifestLoadingRetryDelay: 500,
|
||||
levelLoadingRetryDelay: 500
|
||||
});
|
||||
window.hlsInstance = hls;
|
||||
hls.loadSource(url);
|
||||
hls.attachMedia(video);
|
||||
|
||||
Reference in new issue
Block a user