How to cache an AVPlayerItem (Video) for reuse in a UITableview

前端 未结 3 1319
伪装坚强ぢ
伪装坚强ぢ 2020-12-30 13:18

I have a number of videos that I am displaying in a UITableView. The videos are stored remotely on a server. I am able to load the videos into the tableview using some of th

3条回答
  •  生来不讨喜
    2020-12-30 14:08

    There's one method to do this, but it may be taxing on older devices subsequently cause your app to be jettisoned by MediaServerD.

    Upon creation, save each player into an NSMutableArray. Each index in the array should correspond to the indexPath.row of UITableView.

提交回复
热议问题