diff --git a/cocos/ui/UIVideoPlayerIOS.mm b/cocos/ui/UIVideoPlayerIOS.mm index 7e02a27f62..51cda4a9b7 100644 --- a/cocos/ui/UIVideoPlayerIOS.mm +++ b/cocos/ui/UIVideoPlayerIOS.mm @@ -210,7 +210,7 @@ using namespace cocos2d::experimental::ui; -(void) setVisible:(bool)visible { if (self.moviePlayer != NULL) { - [self.moviePlayer.view setHidden:visible]; + [self.moviePlayer.view setHidden:!visible]; } }