Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

handleScrollStopIfNeed方法中代码有问题 #176

Closed
ChenZhenChun opened this issue Jun 28, 2018 · 0 comments
Closed

handleScrollStopIfNeed方法中代码有问题 #176

ChenZhenChun opened this issue Jun 28, 2018 · 0 comments

Comments

@ChenZhenChun
Copy link

  • (void)handleScrollStopIfNeed {
    UITableViewCell *bestCell = [self findTheBestPlayVideoCell];
    if(!bestCell){
    return;
    }

    // If the found cell is the cell playing video, this situation cannot play video again.
    if(bestCell == self.playingVideoCell){
    return;
    }

    [self.playingVideoCell.jp_videoPlayView jp_stopPlay];
    [self playVideoWithCell:bestCell];
    }

其实cell是复用的不能根据内存地址判断当前cell是否是playingVideoCell

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant