tl;dr I'm trying to recreate this in the Twitter app: https://i.imgur.com/173CVyM.mp4
As you can see, Twitter plays a video in the feed (table view cell) and when the video is tapped, the video smoothly transitions into its own view controller, without stopping or buffering the video.
I have the video playing in the feed part done (in the table view cell), but now I'm stuck on how to actually smoothly transition the video into a view controller on tap.
At a high level, what do I need to do here?
My current setup has an AVPlayer instance as part of each table view cell. Would I pass the AVPlayer instance to the view controller and continue playing the video from there? What about memory management? I feel like having one AVPlayer instance for each table view cell is going to cause some issues, but I'm not entirely sure.
As a secondary question, if I wanted to ignore the fancy animation/transition, how could I continue playing the video seamlessly in a view controller when it's tapped in the table view cell?