mirror of
https://github.com/mpv-player/mpv
synced 2024-12-19 13:21:13 +00:00
206616b697
This is partial only, and it still accesses some MPContext internals. Specifically, chapter and track lists are still read directly, and OSD access is special-cased too. The OSC seems to work fine, except using the fast-forward/backward buttons. These buttons behave differently, because the OSC code had certain assumptions how often its update code is called. The Lua interface changes slightly. Note that this has the odd property that Lua script and video start at the same time, asynchronously. If this becomes an issue, explicit synchronization could be added.
11 lines
127 B
C
11 lines
127 B
C
#ifndef MP_LUA_H
|
|
#define MP_LUA_H
|
|
|
|
#include <stdbool.h>
|
|
|
|
struct MPContext;
|
|
|
|
void mp_lua_init(struct MPContext *mpctx);
|
|
|
|
#endif
|