提交 b7620464 编写于 作者: X xinzhengzhang

ios/FFMoviePlayerController: fix visible logic of hud panel

上级 271ab2e6
......@@ -680,6 +680,7 @@ inline static int getPlayerOption(IJKFFOptionCategory category)
return;
if ([[NSThread currentThread] isMainThread]) {
_glView.shouldShowHudView = YES;
_hudTimer = [NSTimer scheduledTimerWithTimeInterval:.5f
target:self
selector:@selector(refreshHudView)
......@@ -698,6 +699,7 @@ inline static int getPlayerOption(IJKFFOptionCategory category)
return;
if ([[NSThread currentThread] isMainThread]) {
_glView.shouldShowHudView = NO;
[_hudTimer invalidate];
_hudTimer = nil;
} else {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册