return 0;
}
+int HTMLInput_set_max_fps(lua_State* L)
+{
+ assert(lua_gettop(L) == 2);
+ CEFCapture **video_input = (CEFCapture **)luaL_checkudata(L, 1, "HTMLInput");
+ int max_fps = lrint(luaL_checknumber(L, 2));
+ (*video_input)->set_max_fps(max_fps);
+ return 0;
+}
+
int HTMLInput_get_signal_num(lua_State* L)
{
assert(lua_gettop(L) == 1);
};
const luaL_Reg HTMLInput_funcs[] = {
- // TODO: execute_javascript, perhaps set_max_fps?
+ // TODO: execute_javascript
{ "new", HTMLInput_new },
{ "set_url", HTMLInput_set_url },
{ "reload", HTMLInput_reload },
+ { "set_max_fps", HTMLInput_set_max_fps },
{ "get_signal_num", HTMLInput_get_signal_num },
{ NULL, NULL }
};