feat: Update AudioPlayer and LyricSearch components for improved functionality and user experience

This commit is contained in:
2025-11-25 13:05:37 -05:00
parent 8500cd6e67
commit ee25ad243c
5 changed files with 133 additions and 122 deletions

View File

@@ -217,16 +217,16 @@ export default function Player({ user }) {
}
const hls = new Hls({
lowLatencyMode: true,
lowLatencyMode: false,
abrEnabled: false,
liveSyncDuration: 0.5, // seconds behind live edge target
liveSyncDuration: 0.6, // seconds behind live edge target
liveMaxLatencyDuration: 3.0, // max allowed latency before catchup
liveCatchUpPlaybackRate: 1.02,
maxBufferLength: 30,
maxMaxBufferLength: 60,
maxBufferHole: 0.5,
manifestLoadingTimeOut: 4000,
fragLoadingTimeOut: 10000, // playback speed when catching up
// maxBufferLength: 30,
// maxMaxBufferLength: 60,
// maxBufferHole: 2.0,
// manifestLoadingTimeOut: 5000,
// fragLoadingTimeOut: 10000, // playback speed when catching up
});
hlsInstance.current = hls;