Skip to content

Commit

Permalink
temp disable keep-open , can't detect finish event
Browse files Browse the repository at this point in the history
  • Loading branch information
typcn committed Sep 5, 2015
1 parent 5acdcbd commit f7df943
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bilibili/PlayerView/PlayerView.mm
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ - (void)PlayVideo:(NSString*) commentFile :(NSString*)res{
check_error(mpv_set_option_string(mpv, "user-agent", [@"Mozilla/5.0 (Windows NT 6.1; WOW64; rv:6.0.2) Gecko/20100101 Firefox/6.0.2 Fengfan/1.0" cStringUsingEncoding:NSUTF8StringEncoding]));
check_error(mpv_set_option_string(mpv, "framedrop", "vo"));
check_error(mpv_set_option_string(mpv, "hr-seek", "yes"));
check_error(mpv_set_option_string(mpv, "keep-open", "yes"));
//check_error(mpv_set_option_string(mpv, "keep-open", "yes"));

int disableKeepAspect = [self getSettings:@"disableKeepAspect"];
if(disableKeepAspect == 1){
Expand Down Expand Up @@ -632,7 +632,7 @@ - (void) handleEvent:(mpv_event *)event
}

case MPV_EVENT_END_FILE:{
[self.textTip setStringValue:NSLocalizedString(@"播放完成", nil)];
[self.textTip setStringValue:NSLocalizedString(@"播放完成,关闭窗口继续", nil)];
break;
}

Expand Down

0 comments on commit f7df943

Please sign in to comment.