Home > Blockchain >  How do I cache cells and also reuse cells in a collectionview that has avplayers embedded in each ce
How do I cache cells and also reuse cells in a collectionview that has avplayers embedded in each ce

Time:03-15

Basically what I am trying to do is cache the cell and have the video keep playing. When the user scroll back to the cell, the video should just show from where it was playing.

The problem is that the player gets removed and the cell ends up on a random cell instead of its designated area.

You will need to have two videos for this to work, I downloaded the videos off of here AVPlayer resume restore in UICollectionView UIScrollView iOS Swift

  • Related