         
         if currentIndexPath == indexPath {
             // 当前cell需要播放视屏
-            if view as? BMPlayer == nil {
+            if (view as? BMPlayer) == nil {
                 videoCell.bgView.addSubview(player)
                 player.frame = videoCell.videoFrame
             }

    }
    
    func tableView(_ tableView: UITableView, willDisplay cell: UITableViewCell, forRowAt indexPath: IndexPath) {
        let playerCell = tableView.cellForRow(at: currentIndexPath)
        if let playerCell = playerCell, tableView.visibleCells.contains(playerCell) {
            player.play()
        } else {
            player.pause()
        }
        guard let videoCell = cell as? VideoCell else {
            return
        }

    
    var videoType: VideoType = .zipai
    var realUrlStr: String?
    var currentIndexPath: IndexPath = IndexPath(row: 0, section: -1)
    fileprivate lazy var playerInfo: (String?, title: String?, cover: String?) = ("", "", "")
    
    fileprivate lazy var tableView: UITableView = UITableView(frame: CGRect.zero, style: .plain)
