Skip to content

Commit

Permalink
[ASVideoPlayerNode] Check that the video player's delegate implements…
Browse files Browse the repository at this point in the history
… the didTapFullScreenButtonNode method before calling it #trivial (#418)
  • Loading branch information
tnev authored and nguyenhuy committed Jul 5, 2017
1 parent fb6cad9 commit cf870dc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Source/ASVideoPlayerNode.mm
Original file line number Diff line number Diff line change
Expand Up @@ -681,7 +681,9 @@ - (void)didTapPlaybackButton:(ASControlNode*)node

- (void)didTapFullScreenButton:(ASButtonNode*)node
{
[_delegate didTapFullScreenButtonNode:node];
if (_delegateFlags.delegateDidTapFullScreenButtonNode) {
[_delegate didTapFullScreenButtonNode:node];
}
}

- (void)beginSeek
Expand Down

0 comments on commit cf870dc

Please sign in to comment.