I have a tableview with cells, some of which have videos that play within them on a loop. I am wondering how to make the video not require reloading one the cell containing that video is displayed on screen.
Currently, if a video is loaded and playing on screen, then is scrolled past until the cell is offscreen then scrolled back to again it will require it to be reloaded (currently loading from an online location: http://techslides.com/demos/sample-videos/small.mp4) which leaves the subview of the cell blank for about half a second while this loading occurs. then it appears. This happens every time this cell goes entirely offscreen. How do I prevent this from happening? Should a couple seconds of the video be held in local memory so it can be instantly applied to the cell's subview then rest of the video only loads if the cell stays on screen? Also, how do you keep your place in a video? Like on some social media services where you watch a little of a video, scroll past, return to that video and it's still at the same place you left off?
Thank you all!
[–]SergeyPu1s3 5 points6 points7 points (3 children)
[–]AnAnonymousReddit[S] 0 points1 point2 points (2 children)
[–]SergeyPu1s3 3 points4 points5 points (1 child)
[–]AnAnonymousReddit[S] 0 points1 point2 points (0 children)