Skip to content

Commit

Permalink
修复播放、暂停方法bug
Browse files Browse the repository at this point in the history
  • Loading branch information
renzifeng committed Jun 1, 2016
1 parent 803b6c7 commit 6908a50
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ZFPlayer/ZFPlayerView.m
Original file line number Diff line number Diff line change
Expand Up @@ -1148,6 +1148,7 @@ - (void)startAction:(UIButton *)button
*/
- (void)play
{
self.isPauseByUser = NO;
[_player play];
}

Expand All @@ -1156,7 +1157,8 @@ - (void)play
*/
- (void)pause
{
[_player pause];
self.isPauseByUser = YES;
[_player pause];
}

/**
Expand Down

0 comments on commit 6908a50

Please sign in to comment.