diff options
author | Stefano Pigozzi <stefano.pigozzi@gmail.com> | 2014-10-09 21:02:47 +0200 |
---|---|---|
committer | Stefano Pigozzi <stefano.pigozzi@gmail.com> | 2014-10-09 22:14:41 +0200 |
commit | ca353fcf9268fc4630143db21bd1b3e7c806b889 (patch) | |
tree | 63a839db8bf7324881eabb7d721cebdf23971082 /DOCS/client_api_examples | |
parent | d1e8bb0f9be24106a15debf133ba5778dcb59056 (diff) | |
download | mpv-ca353fcf9268fc4630143db21bd1b3e7c806b889.tar.bz2 mpv-ca353fcf9268fc4630143db21bd1b3e7c806b889.tar.xz |
libmpv/cocoa: make global events work and get rid of is_cplayer
After @frau's split of macosx_events from macosx_application, `is_cplayer' is
not needed anymore. At the moment only global events such as Media Keys and
Apple Remote work, because the VO-level ones were hardcoded to be disabled.
(that will be fix in a later commit ).
Diffstat (limited to 'DOCS/client_api_examples')
-rw-r--r-- | DOCS/client_api_examples/cocoabasic.m | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/DOCS/client_api_examples/cocoabasic.m b/DOCS/client_api_examples/cocoabasic.m index 3324f13845..35637f0a9f 100644 --- a/DOCS/client_api_examples/cocoabasic.m +++ b/DOCS/client_api_examples/cocoabasic.m @@ -90,6 +90,9 @@ static void wakeup(void *); // NOTE: Interaction with the window seems to be broken for now. check_error(mpv_set_option_string(mpv, "input-default-bindings", "yes")); + // for testing! + check_error(mpv_set_option_string(mpv, "input-media-keys", "yes")); + check_error(mpv_initialize(mpv)); // Register to be woken up whenever mpv generates new events. |