chore: add player config

This commit is contained in:
Kieran 2023-11-02 04:45:42 +09:00
parent a8f9b9a152
commit f42992ff77
Signed by: Kieran
GPG Key ID: DE71CEB3925BE941

View File

@ -23,7 +23,11 @@ export function LiveVideoPlayer(props: VideoPlayerProps) {
if (streamCached && video.current) {
if (Hls.isSupported()) {
try {
const hls = new Hls();
const hls = new Hls({
enableWorker: true,
lowLatencyMode: true,
backBufferLength: 90
});
hls.loadSource(streamCached);
hls.attachMedia(video.current);
hls.on(Hls.Events.ERROR, (event, data) => {