Skip to content

Commit

Permalink
temp enable osc
Browse files Browse the repository at this point in the history
  • Loading branch information
typcn committed Sep 6, 2015
1 parent f724bf3 commit 3250bc4
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 @@ -414,9 +414,9 @@ - (void)PlayVideo:(NSString*) commentFile :(NSString*)res{
check_error(mpv_set_option_string(mpv, "input-vo-keyboard", "yes"));
check_error(mpv_set_option_string(mpv, "input-media-keys", "yes"));
check_error(mpv_set_option_string(mpv, "input-cursor", "yes"));
check_error(mpv_set_option_string(mpv, "osc", "no"));
check_error(mpv_set_option_string(mpv, "osc", "yes"));
check_error(mpv_set_option_string(mpv, "autofit", [res cStringUsingEncoding:NSUTF8StringEncoding]));
//check_error(mpv_set_option_string(mpv, "script-opts", "osc-layout=bottombar,osc-seekbarstyle=bar"));
check_error(mpv_set_option_string(mpv, "script-opts", "osc-layout=box,osc-seekbarstyle=bar"));
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"));
Expand Down

0 comments on commit 3250bc4

Please sign in to comment.