return 0;
}
+int HTMLInput_resize(lua_State* L)
+{
+ assert(lua_gettop(L) == 3);
+ CEFCapture **video_input = (CEFCapture **)luaL_checkudata(L, 1, "HTMLInput");
+ unsigned width = lrint(luaL_checknumber(L, 2));
+ unsigned height = lrint(luaL_checknumber(L, 3));
+ (*video_input)->resize(width, height);
+ return 0;
+}
+
int HTMLInput_get_signal_num(lua_State* L)
{
assert(lua_gettop(L) == 1);
{ "reload", HTMLInput_reload },
{ "set_max_fps", HTMLInput_set_max_fps },
{ "execute_javascript_async", HTMLInput_execute_javascript_async },
+ { "resize", HTMLInput_resize },
{ "get_signal_num", HTMLInput_get_signal_num },
#endif
{ NULL, NULL }
void Theme::theme_menu_entry_clicked(int lua_ref)
{
+ unique_lock<mutex> lock(m);
lua_rawgeti(L, LUA_REGISTRYINDEX, lua_ref);
if (lua_pcall(L, 0, 0, 0) != 0) {
fprintf(stderr, "error running menu callback: %s\n", lua_tostring(L, -1));