Skip to content
This repository has been archived by the owner on Jan 24, 2023. It is now read-only.

Commit

Permalink
πŸ› Fix seek-preview with new hls.js config
Browse files Browse the repository at this point in the history
The previously used hls.js config for the seek-preview had
`autoStartLoad:false` which caused errors, when using the seek preview.

There is also little to no sense in having the seek-preview not
autoStartLoading, because it is only initialized on hover and
then it should immediately start auto loading the contents of the video.
  • Loading branch information
gorillamoe committed Dec 13, 2022
1 parent a3c77d0 commit fda0b85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/UI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ class UI {
maxBufferSize: 0,
maxBufferLength: 10,
capLevelToPlayerSize: true,
autoStartLoad: false
autoStartLoad: true
})
this.hls.loadSource(videoSource.src)
this.hls.attachMedia(seekPreviewVideo)
Expand Down

0 comments on commit fda0b85

Please sign in to comment.