How to play multiple videos smoothly in iOS in UICollectionView?

只谈情不闲聊 提交于 2019-12-05 16:19:09

AVPlayer able to play multiple video in app very smoothly but you need to manage cell for collection view because In your code, when your cell reload, your newAVPlayer object create for same video which create issue.

So you need to implement such an mechanism by which can achieve to create single AVPlayer object for one video. One suggestion is managing pool for AVPlayer objects.

Thanks

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!