iOS Swift-AVPlayer嵌入在UITableViewCell中 [英] iOS Swift - AVPlayer embeded in UITableViewCell

查看:129
本文介绍了iOS Swift-AVPlayer嵌入在UITableViewCell中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有一种方法可以在UITableViewCell中使用AVPlayer创建tableView并滚动而不会出现滞后?我正在使用 replaceCurrentItemWithPlayerItem 方法替换每个单元格在AVPlayer中的项目..并且它在每个单元格出队时都会冻结……

Is there a way to create a tableView with AVPlayer in UITableViewCell, and scroll without lag? I'm using replaceCurrentItemWithPlayerItem method to replace the item in the AVPlayer for each cell.. and it freezes at every cell dequeue......

推荐答案

您是否尝试过使用 AVAssetImageGenerator .

这篇关于iOS Swift-AVPlayer嵌入在UITableViewCell中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆