 extension SelfieViewController: UITableViewDelegate {
     func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
         tableView.deselectRow(at: indexPath, animated: false)
+        currentIndexPath = indexPath
         let videoModel = videos[indexPath.row]
         playerInfo.title = videoModel.title
         playerInfo.cover = videoModel.img
         if let cell = tableView.cellForRow(at: indexPath) as? VideoCell {
-            currentIndexPath = indexPath
             player.prepareToDealloc()
             player.removeFromSuperview()
             cell.bgView.addSubview(player)

                playerV.removeFromSuperview()
            }
        }
    }
    
}

// MARK: - UITableViewDataSource

    }
    
    func tableView(_ tableView: UITableView, willDisplay cell: UITableViewCell, forRowAt indexPath: IndexPath) {
        guard let videoCell = cell as? VideoCell else {
            return
        }
