Norway


Hi All,
I’m working on a project where I have almost near it’s end.I have fb’s post like UI. I am using TextureKit’s AVPlayerNode to videos inside my tableview custom cell. Right now I’m using will display cell and didEndDisplayCell methods to and pause videos. Now I’m struggling with how Facebook plays them even when you scroll without halting scrolling performance. I tried one solution by looping through cells on scrollViewDidScroll method and check if cell is my cell’s frame is % on screen then play video else stop, but this is halting scroll performance. Any one knows any other for this. I am using objective-c.



Source link

LEAVE A REPLY

Please enter your comment!
Please enter your name here