问题
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......
回答1:
Have you tried AVPlayer.prerollAtRate:?
You could display the first frame of the video while it gets ready using AVAssetImageGenerator.
来源:https://stackoverflow.com/questions/33424261/ios-swift-avplayer-embeded-in-uitableviewcell