Closed Senkai350 closed 2 years ago
When using HLS.js you need to call hls.detachMedia()
(or better yet hls.destroy()
) before setting the src on the video externally. Generally if you re-use an HTMLMediaElement, you should call video.load()
to unload media before setting the src again. detachMedia
does this for you.
I have the same problem described here (https://stackoverflow.com/questions/67196240/hls-player-clear-video-js-buffer-on-click) but i use vime js player with vue (player use hls.js). When i change src property, player play buffer on previous source (about 5 sec) and only after that play new src. It's possible to flush buffer using function or something else?