Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

播放直播视频,页面处于非激活状态时,会发生内存泄漏 #50

Open
leoyoung07 opened this issue Nov 1, 2021 · 1 comment

Comments

@leoyoung07
Copy link

leoyoung07 commented Nov 1, 2021

image
image
image

复现步骤:

  1. 播放直播视频(live: true)
  2. 在浏览器新标签页打开其他页面
  3. 观察FlvPlayer所在页面的内存占用
  4. 过一段时间将出现out of memory错误

推测原因:
页面处于非展示状态,requestAnimationFrame不会被调用,'timeupdate'事件不会触发,'free-video-memory'过程不会进行;但decoderWorker在后台持续运行,导致内存泄漏。

@zhw2590582
Copy link
Owner

测试了一下,确实会这样,但目前我还没有时间去维护这个播放器,等我空闲下来我会好好优化它的,感谢你的反馈

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants