playing videos only on visible cell

  1. 11 months ago

    hello,
    i made an application that playing videos on tableview automatically on swift. when i run application, all videos start playing and when i scroll some of them playing on the same cell. so i need to play the video on cell that visible and stop the others.
    how can i do this?
    i use avplayer kit and uitableview.

or Sign Up to reply!