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

受益很大,感谢作者!不过每个cell里都有一个AVPlayerView,这样可能会导致内存暴增,尤其是频繁切换视频的时候... #44

Open
LiuPengKun1993 opened this issue May 12, 2020 · 5 comments

Comments

@LiuPengKun1993
Copy link

No description provided.

@LiuPengKun1993
Copy link
Author

image

刚开始是十几兆,看几个视频后变成了200M+

@cnzlh
Copy link

cnzlh commented Jul 7, 2020

image

刚开始是十几兆,看几个视频后变成了200M+

有什么解决办法吗

@liubang0909
Copy link

重用是不是有问题?按照tableview的重用机制 应该只有两个AVPlayerView存在吧?

@LiuPengKun1993
Copy link
Author

image

刚开始是十几兆,看几个视频后变成了200M+

有什么解决办法吗

可以试试避免重复创建播放器,每次切换都创建播放器消耗很大

@developerjet
Copy link

image

刚开始是十几兆,看几个视频后变成了200M+

有什么解决办法吗

可以试试避免重复创建播放器,每次切换都创建播放器消耗很大

你好,请问如何避免重复创建AVPlayer呢,求指教。感觉每实例化一个AVPlayer都会增加一点的内存,而且还没办法释放。

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

4 participants