Hls.js play, Google browser crash, reported insufficient memory
What do you want to do with Hls.js?
Use hls.js to play multiple videos at the same time. After playing for about 10 minutes, Google browser crashes and reports low memory. Is there a solution?
function play(){
if(Hls.isSupported()) {
for (let index = 0; index < 21; index++){
if ((index + 1) == 5){
continue
}
let video = document.createElement('video');
let hls = new Hls();
playerBox.appendChild(video)
hls.loadSource(http://127.0.0.1:10800/hls/stream_${index+1}/playlist.m3u8);
hls.attachMedia(video);
hls.on(Hls.Events.MANIFEST_PARSED, function () {
});
}
}
}
What have you tried so far?
No response
Since this is a fairly uncommon use case, I don't think this will be a resolvable issue any time soon. You could try one of the other open source players (e.g. Shaka Player).
@1606207494 have you tested with a more recent version of hls.js?
What version did you encounter the issue with? What version of Chrome?
Could you look at the performance monitor on a page with exactly the test code you linked above?
You should see a consistent amount of DOM Nodes, and the buffer should increase and decrease as items buffer and go out of window.
What was the Live window that you were using?
In order for this to be actionable we need more information.
Thank you. Please re-open when you provide this additional context! At this time, I don't see this behaviour with multiple players on the page, so not sure what you're doing to cause this.