mpegts.js
mpegts.js copied to clipboard
内存泄露问题
打开demo页,播一个ws-flv直播,播大约1天,浏览器报out of memory。
可使用Chrome的F12工具录制,录制7分钟,可观察录制过程中,每秒钟都会产生一点点未释放的内存。
选中会发现,存在相当多的n引用,图中有672个n,随着时间一直增加
我已经把日志注释了,应该可排除是日志导致问题
我这边使用iframe复制了10份demo页同时播,崩溃速度更快。
<!DOCTYPE html>
<html>
<head>
<title>video Client v1</title>
<style>
.player-iframe {width:450px;height:540px}
</style>
</head>
<body>
<iframe src="index.html" class="player-iframe"></iframe>
<iframe src="index.html" class="player-iframe"></iframe>
<iframe src="index.html" class="player-iframe"></iframe>
<iframe src="index.html" class="player-iframe"></iframe>
<iframe src="index.html" class="player-iframe"></iframe>
<iframe src="index.html" class="player-iframe"></iframe>
<iframe src="index.html" class="player-iframe"></iframe>
<iframe src="index.html" class="player-iframe"></iframe>
<iframe src="index.html" class="player-iframe"></iframe>
<iframe src="index.html" class="player-iframe"></iframe>
</body>
</html>
请问解决了嘛
@qiangbro 我也遇到了一样的问题,请问解决了吗