2022-08-08 18:02:17 +08:00
|
|
|
#include "scripting/lua-bindings/auto/axlua_video_auto.hpp"
|
2022-02-24 19:08:25 +08:00
|
|
|
#include "ui/UIVideoPlayer/UIVideoPlayer.h"
|
2019-10-23 14:58:31 +08:00
|
|
|
#include "scripting/lua-bindings/manual/tolua_fix.h"
|
|
|
|
#include "scripting/lua-bindings/manual/LuaBasicConversions.h"
|
|
|
|
|
2022-08-08 18:02:17 +08:00
|
|
|
int lua_axys_video_VideoPlayer_getFileName(lua_State* tolua_S)
|
2019-10-23 14:58:31 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-08-08 18:02:17 +08:00
|
|
|
axys::ui::VideoPlayer* cobj = nullptr;
|
2019-10-23 14:58:31 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
2022-08-08 18:02:17 +08:00
|
|
|
#if _AX_DEBUG >= 1
|
2019-10-23 14:58:31 +08:00
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
2022-08-08 18:02:17 +08:00
|
|
|
#if _AX_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"axui.VideoPlayer",0,&tolua_err)) goto tolua_lerror;
|
2019-10-23 14:58:31 +08:00
|
|
|
#endif
|
|
|
|
|
2022-08-08 18:02:17 +08:00
|
|
|
cobj = (axys::ui::VideoPlayer*)tolua_tousertype(tolua_S,1,0);
|
2019-10-23 14:58:31 +08:00
|
|
|
|
2022-08-08 18:02:17 +08:00
|
|
|
#if _AX_DEBUG >= 1
|
2019-10-23 14:58:31 +08:00
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-08-08 18:02:17 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axys_video_VideoPlayer_getFileName'", nullptr);
|
2019-10-23 14:58:31 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 0)
|
|
|
|
{
|
|
|
|
if(!ok)
|
|
|
|
{
|
2022-08-08 18:02:17 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axys_video_VideoPlayer_getFileName'", nullptr);
|
2019-10-23 14:58:31 +08:00
|
|
|
return 0;
|
|
|
|
}
|
2021-12-28 15:46:32 +08:00
|
|
|
std::string_view ret = cobj->getFileName();
|
|
|
|
lua_pushlstring(tolua_S,ret.data(),ret.length());
|
2019-10-23 14:58:31 +08:00
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.VideoPlayer:getFileName",argc, 0);
|
2019-10-23 14:58:31 +08:00
|
|
|
return 0;
|
|
|
|
|
2022-08-08 18:02:17 +08:00
|
|
|
#if _AX_DEBUG >= 1
|
2019-10-23 14:58:31 +08:00
|
|
|
tolua_lerror:
|
2022-08-08 18:02:17 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axys_video_VideoPlayer_getFileName'.",&tolua_err);
|
2019-10-23 14:58:31 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-08-08 18:02:17 +08:00
|
|
|
int lua_axys_video_VideoPlayer_getURL(lua_State* tolua_S)
|
2019-10-23 14:58:31 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-08-08 18:02:17 +08:00
|
|
|
axys::ui::VideoPlayer* cobj = nullptr;
|
2019-10-23 14:58:31 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
2022-08-08 18:02:17 +08:00
|
|
|
#if _AX_DEBUG >= 1
|
2019-10-23 14:58:31 +08:00
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
2022-08-08 18:02:17 +08:00
|
|
|
#if _AX_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"axui.VideoPlayer",0,&tolua_err)) goto tolua_lerror;
|
2019-10-23 14:58:31 +08:00
|
|
|
#endif
|
|
|
|
|
2022-08-08 18:02:17 +08:00
|
|
|
cobj = (axys::ui::VideoPlayer*)tolua_tousertype(tolua_S,1,0);
|
2019-10-23 14:58:31 +08:00
|
|
|
|
2022-08-08 18:02:17 +08:00
|
|
|
#if _AX_DEBUG >= 1
|
2019-10-23 14:58:31 +08:00
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-08-08 18:02:17 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axys_video_VideoPlayer_getURL'", nullptr);
|
2019-10-23 14:58:31 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 0)
|
|
|
|
{
|
|
|
|
if(!ok)
|
|
|
|
{
|
2022-08-08 18:02:17 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axys_video_VideoPlayer_getURL'", nullptr);
|
2019-10-23 14:58:31 +08:00
|
|
|
return 0;
|
|
|
|
}
|
2021-12-28 15:46:32 +08:00
|
|
|
std::string_view ret = cobj->getURL();
|
|
|
|
lua_pushlstring(tolua_S,ret.data(),ret.length());
|
2019-10-23 14:58:31 +08:00
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.VideoPlayer:getURL",argc, 0);
|
2019-10-23 14:58:31 +08:00
|
|
|
return 0;
|
|
|
|
|
2022-08-08 18:02:17 +08:00
|
|
|
#if _AX_DEBUG >= 1
|
2019-10-23 14:58:31 +08:00
|
|
|
tolua_lerror:
|
2022-08-08 18:02:17 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axys_video_VideoPlayer_getURL'.",&tolua_err);
|
2019-10-23 14:58:31 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-08-08 18:02:17 +08:00
|
|
|
int lua_axys_video_VideoPlayer_play(lua_State* tolua_S)
|
2019-10-23 14:58:31 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-08-08 18:02:17 +08:00
|
|
|
axys::ui::VideoPlayer* cobj = nullptr;
|
2019-10-23 14:58:31 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
2022-08-08 18:02:17 +08:00
|
|
|
#if _AX_DEBUG >= 1
|
2019-10-23 14:58:31 +08:00
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
2022-08-08 18:02:17 +08:00
|
|
|
#if _AX_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"axui.VideoPlayer",0,&tolua_err)) goto tolua_lerror;
|
2019-10-23 14:58:31 +08:00
|
|
|
#endif
|
|
|
|
|
2022-08-08 18:02:17 +08:00
|
|
|
cobj = (axys::ui::VideoPlayer*)tolua_tousertype(tolua_S,1,0);
|
2019-10-23 14:58:31 +08:00
|
|
|
|
2022-08-08 18:02:17 +08:00
|
|
|
#if _AX_DEBUG >= 1
|
2019-10-23 14:58:31 +08:00
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-08-08 18:02:17 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axys_video_VideoPlayer_play'", nullptr);
|
2019-10-23 14:58:31 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 0)
|
|
|
|
{
|
|
|
|
if(!ok)
|
|
|
|
{
|
2022-08-08 18:02:17 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axys_video_VideoPlayer_play'", nullptr);
|
2019-10-23 14:58:31 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
cobj->play();
|
|
|
|
lua_settop(tolua_S, 1);
|
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.VideoPlayer:play",argc, 0);
|
2019-10-23 14:58:31 +08:00
|
|
|
return 0;
|
|
|
|
|
2022-08-08 18:02:17 +08:00
|
|
|
#if _AX_DEBUG >= 1
|
2019-10-23 14:58:31 +08:00
|
|
|
tolua_lerror:
|
2022-08-08 18:02:17 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axys_video_VideoPlayer_play'.",&tolua_err);
|
2019-10-23 14:58:31 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-08-08 18:02:17 +08:00
|
|
|
int lua_axys_video_VideoPlayer_isUserInputEnabled(lua_State* tolua_S)
|
2019-10-23 14:58:31 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-08-08 18:02:17 +08:00
|
|
|
axys::ui::VideoPlayer* cobj = nullptr;
|
2019-10-23 14:58:31 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
2022-08-08 18:02:17 +08:00
|
|
|
#if _AX_DEBUG >= 1
|
2019-10-23 14:58:31 +08:00
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
2022-08-08 18:02:17 +08:00
|
|
|
#if _AX_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"axui.VideoPlayer",0,&tolua_err)) goto tolua_lerror;
|
2019-10-23 14:58:31 +08:00
|
|
|
#endif
|
|
|
|
|
2022-08-08 18:02:17 +08:00
|
|
|
cobj = (axys::ui::VideoPlayer*)tolua_tousertype(tolua_S,1,0);
|
2019-10-23 14:58:31 +08:00
|
|
|
|
2022-08-08 18:02:17 +08:00
|
|
|
#if _AX_DEBUG >= 1
|
2019-10-23 14:58:31 +08:00
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-08-08 18:02:17 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axys_video_VideoPlayer_isUserInputEnabled'", nullptr);
|
2019-10-23 14:58:31 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 0)
|
|
|
|
{
|
|
|
|
if(!ok)
|
|
|
|
{
|
2022-08-08 18:02:17 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axys_video_VideoPlayer_isUserInputEnabled'", nullptr);
|
2019-10-23 14:58:31 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
bool ret = cobj->isUserInputEnabled();
|
|
|
|
tolua_pushboolean(tolua_S,(bool)ret);
|
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.VideoPlayer:isUserInputEnabled",argc, 0);
|
2019-10-23 14:58:31 +08:00
|
|
|
return 0;
|
|
|
|
|
2022-08-08 18:02:17 +08:00
|
|
|
#if _AX_DEBUG >= 1
|
2019-10-23 14:58:31 +08:00
|
|
|
tolua_lerror:
|
2022-08-08 18:02:17 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axys_video_VideoPlayer_isUserInputEnabled'.",&tolua_err);
|
2019-10-23 14:58:31 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-08-08 18:02:17 +08:00
|
|
|
int lua_axys_video_VideoPlayer_setKeepAspectRatioEnabled(lua_State* tolua_S)
|
2019-10-23 14:58:31 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-08-08 18:02:17 +08:00
|
|
|
axys::ui::VideoPlayer* cobj = nullptr;
|
2019-10-23 14:58:31 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
2022-08-08 18:02:17 +08:00
|
|
|
#if _AX_DEBUG >= 1
|
2019-10-23 14:58:31 +08:00
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
2022-08-08 18:02:17 +08:00
|
|
|
#if _AX_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"axui.VideoPlayer",0,&tolua_err)) goto tolua_lerror;
|
2019-10-23 14:58:31 +08:00
|
|
|
#endif
|
|
|
|
|
2022-08-08 18:02:17 +08:00
|
|
|
cobj = (axys::ui::VideoPlayer*)tolua_tousertype(tolua_S,1,0);
|
2019-10-23 14:58:31 +08:00
|
|
|
|
2022-08-08 18:02:17 +08:00
|
|
|
#if _AX_DEBUG >= 1
|
2019-10-23 14:58:31 +08:00
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-08-08 18:02:17 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axys_video_VideoPlayer_setKeepAspectRatioEnabled'", nullptr);
|
2019-10-23 14:58:31 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 1)
|
|
|
|
{
|
|
|
|
bool arg0;
|
|
|
|
|
2022-07-12 21:31:54 +08:00
|
|
|
ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.VideoPlayer:setKeepAspectRatioEnabled");
|
2019-10-23 14:58:31 +08:00
|
|
|
if(!ok)
|
|
|
|
{
|
2022-08-08 18:02:17 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axys_video_VideoPlayer_setKeepAspectRatioEnabled'", nullptr);
|
2019-10-23 14:58:31 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
cobj->setKeepAspectRatioEnabled(arg0);
|
|
|
|
lua_settop(tolua_S, 1);
|
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.VideoPlayer:setKeepAspectRatioEnabled",argc, 1);
|
2019-10-23 14:58:31 +08:00
|
|
|
return 0;
|
|
|
|
|
2022-08-08 18:02:17 +08:00
|
|
|
#if _AX_DEBUG >= 1
|
2019-10-23 14:58:31 +08:00
|
|
|
tolua_lerror:
|
2022-08-08 18:02:17 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axys_video_VideoPlayer_setKeepAspectRatioEnabled'.",&tolua_err);
|
2019-10-23 14:58:31 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-08-08 18:02:17 +08:00
|
|
|
int lua_axys_video_VideoPlayer_stop(lua_State* tolua_S)
|
2019-10-23 14:58:31 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-08-08 18:02:17 +08:00
|
|
|
axys::ui::VideoPlayer* cobj = nullptr;
|
2019-10-23 14:58:31 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
2022-08-08 18:02:17 +08:00
|
|
|
#if _AX_DEBUG >= 1
|
2019-10-23 14:58:31 +08:00
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
2022-08-08 18:02:17 +08:00
|
|
|
#if _AX_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"axui.VideoPlayer",0,&tolua_err)) goto tolua_lerror;
|
2019-10-23 14:58:31 +08:00
|
|
|
#endif
|
|
|
|
|
2022-08-08 18:02:17 +08:00
|
|
|
cobj = (axys::ui::VideoPlayer*)tolua_tousertype(tolua_S,1,0);
|
2019-10-23 14:58:31 +08:00
|
|
|
|
2022-08-08 18:02:17 +08:00
|
|
|
#if _AX_DEBUG >= 1
|
2019-10-23 14:58:31 +08:00
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-08-08 18:02:17 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axys_video_VideoPlayer_stop'", nullptr);
|
2019-10-23 14:58:31 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 0)
|
|
|
|
{
|
|
|
|
if(!ok)
|
|
|
|
{
|
2022-08-08 18:02:17 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axys_video_VideoPlayer_stop'", nullptr);
|
2019-10-23 14:58:31 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
cobj->stop();
|
|
|
|
lua_settop(tolua_S, 1);
|
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.VideoPlayer:stop",argc, 0);
|
2019-10-23 14:58:31 +08:00
|
|
|
return 0;
|
|
|
|
|
2022-08-08 18:02:17 +08:00
|
|
|
#if _AX_DEBUG >= 1
|
2019-10-23 14:58:31 +08:00
|
|
|
tolua_lerror:
|
2022-08-08 18:02:17 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axys_video_VideoPlayer_stop'.",&tolua_err);
|
2019-10-23 14:58:31 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-08-08 18:02:17 +08:00
|
|
|
int lua_axys_video_VideoPlayer_setFullScreenEnabled(lua_State* tolua_S)
|
2019-10-23 14:58:31 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-08-08 18:02:17 +08:00
|
|
|
axys::ui::VideoPlayer* cobj = nullptr;
|
2019-10-23 14:58:31 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
2022-08-08 18:02:17 +08:00
|
|
|
#if _AX_DEBUG >= 1
|
2019-10-23 14:58:31 +08:00
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
2022-08-08 18:02:17 +08:00
|
|
|
#if _AX_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"axui.VideoPlayer",0,&tolua_err)) goto tolua_lerror;
|
2019-10-23 14:58:31 +08:00
|
|
|
#endif
|
|
|
|
|
2022-08-08 18:02:17 +08:00
|
|
|
cobj = (axys::ui::VideoPlayer*)tolua_tousertype(tolua_S,1,0);
|
2019-10-23 14:58:31 +08:00
|
|
|
|
2022-08-08 18:02:17 +08:00
|
|
|
#if _AX_DEBUG >= 1
|
2019-10-23 14:58:31 +08:00
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-08-08 18:02:17 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axys_video_VideoPlayer_setFullScreenEnabled'", nullptr);
|
2019-10-23 14:58:31 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 1)
|
|
|
|
{
|
|
|
|
bool arg0;
|
|
|
|
|
2022-07-12 21:31:54 +08:00
|
|
|
ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.VideoPlayer:setFullScreenEnabled");
|
2019-10-23 14:58:31 +08:00
|
|
|
if(!ok)
|
|
|
|
{
|
2022-08-08 18:02:17 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axys_video_VideoPlayer_setFullScreenEnabled'", nullptr);
|
2019-10-23 14:58:31 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
cobj->setFullScreenEnabled(arg0);
|
|
|
|
lua_settop(tolua_S, 1);
|
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.VideoPlayer:setFullScreenEnabled",argc, 1);
|
2019-10-23 14:58:31 +08:00
|
|
|
return 0;
|
|
|
|
|
2022-08-08 18:02:17 +08:00
|
|
|
#if _AX_DEBUG >= 1
|
2019-10-23 14:58:31 +08:00
|
|
|
tolua_lerror:
|
2022-08-08 18:02:17 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axys_video_VideoPlayer_setFullScreenEnabled'.",&tolua_err);
|
2019-10-23 14:58:31 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-08-08 18:02:17 +08:00
|
|
|
int lua_axys_video_VideoPlayer_setPlayRate(lua_State* tolua_S)
|
2022-04-28 12:20:11 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-08-08 18:02:17 +08:00
|
|
|
axys::ui::VideoPlayer* cobj = nullptr;
|
2022-04-28 12:20:11 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
2022-08-08 18:02:17 +08:00
|
|
|
#if _AX_DEBUG >= 1
|
2022-04-28 12:20:11 +08:00
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
2022-08-08 18:02:17 +08:00
|
|
|
#if _AX_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"axui.VideoPlayer",0,&tolua_err)) goto tolua_lerror;
|
2022-04-28 12:20:11 +08:00
|
|
|
#endif
|
|
|
|
|
2022-08-08 18:02:17 +08:00
|
|
|
cobj = (axys::ui::VideoPlayer*)tolua_tousertype(tolua_S,1,0);
|
2022-04-28 12:20:11 +08:00
|
|
|
|
2022-08-08 18:02:17 +08:00
|
|
|
#if _AX_DEBUG >= 1
|
2022-04-28 12:20:11 +08:00
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-08-08 18:02:17 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axys_video_VideoPlayer_setPlayRate'", nullptr);
|
2022-04-28 12:20:11 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 1)
|
|
|
|
{
|
|
|
|
double arg0;
|
|
|
|
|
2022-07-12 21:31:54 +08:00
|
|
|
ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.VideoPlayer:setPlayRate");
|
2022-04-28 12:20:11 +08:00
|
|
|
if(!ok)
|
|
|
|
{
|
2022-08-08 18:02:17 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axys_video_VideoPlayer_setPlayRate'", nullptr);
|
2022-04-28 12:20:11 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
cobj->setPlayRate(arg0);
|
|
|
|
lua_settop(tolua_S, 1);
|
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.VideoPlayer:setPlayRate",argc, 1);
|
2022-04-28 12:20:11 +08:00
|
|
|
return 0;
|
|
|
|
|
2022-08-08 18:02:17 +08:00
|
|
|
#if _AX_DEBUG >= 1
|
2022-04-28 12:20:11 +08:00
|
|
|
tolua_lerror:
|
2022-08-08 18:02:17 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axys_video_VideoPlayer_setPlayRate'.",&tolua_err);
|
2022-04-28 12:20:11 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-08-08 18:02:17 +08:00
|
|
|
int lua_axys_video_VideoPlayer_setFileName(lua_State* tolua_S)
|
2019-10-23 14:58:31 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-08-08 18:02:17 +08:00
|
|
|
axys::ui::VideoPlayer* cobj = nullptr;
|
2019-10-23 14:58:31 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
2022-08-08 18:02:17 +08:00
|
|
|
#if _AX_DEBUG >= 1
|
2019-10-23 14:58:31 +08:00
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
2022-08-08 18:02:17 +08:00
|
|
|
#if _AX_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"axui.VideoPlayer",0,&tolua_err)) goto tolua_lerror;
|
2019-10-23 14:58:31 +08:00
|
|
|
#endif
|
|
|
|
|
2022-08-08 18:02:17 +08:00
|
|
|
cobj = (axys::ui::VideoPlayer*)tolua_tousertype(tolua_S,1,0);
|
2019-10-23 14:58:31 +08:00
|
|
|
|
2022-08-08 18:02:17 +08:00
|
|
|
#if _AX_DEBUG >= 1
|
2019-10-23 14:58:31 +08:00
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-08-08 18:02:17 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axys_video_VideoPlayer_setFileName'", nullptr);
|
2019-10-23 14:58:31 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 1)
|
|
|
|
{
|
2021-12-28 15:46:32 +08:00
|
|
|
std::string_view arg0;
|
2019-10-23 14:58:31 +08:00
|
|
|
|
2022-07-12 21:31:54 +08:00
|
|
|
ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.VideoPlayer:setFileName");
|
2019-10-23 14:58:31 +08:00
|
|
|
if(!ok)
|
|
|
|
{
|
2022-08-08 18:02:17 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axys_video_VideoPlayer_setFileName'", nullptr);
|
2019-10-23 14:58:31 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
cobj->setFileName(arg0);
|
|
|
|
lua_settop(tolua_S, 1);
|
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.VideoPlayer:setFileName",argc, 1);
|
2019-10-23 14:58:31 +08:00
|
|
|
return 0;
|
|
|
|
|
2022-08-08 18:02:17 +08:00
|
|
|
#if _AX_DEBUG >= 1
|
2019-10-23 14:58:31 +08:00
|
|
|
tolua_lerror:
|
2022-08-08 18:02:17 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axys_video_VideoPlayer_setFileName'.",&tolua_err);
|
2019-10-23 14:58:31 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-08-08 18:02:17 +08:00
|
|
|
int lua_axys_video_VideoPlayer_setURL(lua_State* tolua_S)
|
2019-10-23 14:58:31 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-08-08 18:02:17 +08:00
|
|
|
axys::ui::VideoPlayer* cobj = nullptr;
|
2019-10-23 14:58:31 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
2022-08-08 18:02:17 +08:00
|
|
|
#if _AX_DEBUG >= 1
|
2019-10-23 14:58:31 +08:00
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
2022-08-08 18:02:17 +08:00
|
|
|
#if _AX_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"axui.VideoPlayer",0,&tolua_err)) goto tolua_lerror;
|
2019-10-23 14:58:31 +08:00
|
|
|
#endif
|
|
|
|
|
2022-08-08 18:02:17 +08:00
|
|
|
cobj = (axys::ui::VideoPlayer*)tolua_tousertype(tolua_S,1,0);
|
2019-10-23 14:58:31 +08:00
|
|
|
|
2022-08-08 18:02:17 +08:00
|
|
|
#if _AX_DEBUG >= 1
|
2019-10-23 14:58:31 +08:00
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-08-08 18:02:17 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axys_video_VideoPlayer_setURL'", nullptr);
|
2019-10-23 14:58:31 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 1)
|
|
|
|
{
|
2021-12-28 15:46:32 +08:00
|
|
|
std::string_view arg0;
|
2019-10-23 14:58:31 +08:00
|
|
|
|
2022-07-12 21:31:54 +08:00
|
|
|
ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "axui.VideoPlayer:setURL");
|
2019-10-23 14:58:31 +08:00
|
|
|
if(!ok)
|
|
|
|
{
|
2022-08-08 18:02:17 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axys_video_VideoPlayer_setURL'", nullptr);
|
2019-10-23 14:58:31 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
cobj->setURL(arg0);
|
|
|
|
lua_settop(tolua_S, 1);
|
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.VideoPlayer:setURL",argc, 1);
|
2019-10-23 14:58:31 +08:00
|
|
|
return 0;
|
|
|
|
|
2022-08-08 18:02:17 +08:00
|
|
|
#if _AX_DEBUG >= 1
|
2019-10-23 14:58:31 +08:00
|
|
|
tolua_lerror:
|
2022-08-08 18:02:17 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axys_video_VideoPlayer_setURL'.",&tolua_err);
|
2019-10-23 14:58:31 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-08-08 18:02:17 +08:00
|
|
|
int lua_axys_video_VideoPlayer_setStyle(lua_State* tolua_S)
|
2019-10-23 14:58:31 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-08-08 18:02:17 +08:00
|
|
|
axys::ui::VideoPlayer* cobj = nullptr;
|
2019-10-23 14:58:31 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
2022-08-08 18:02:17 +08:00
|
|
|
#if _AX_DEBUG >= 1
|
2019-10-23 14:58:31 +08:00
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
2022-08-08 18:02:17 +08:00
|
|
|
#if _AX_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"axui.VideoPlayer",0,&tolua_err)) goto tolua_lerror;
|
2019-10-23 14:58:31 +08:00
|
|
|
#endif
|
|
|
|
|
2022-08-08 18:02:17 +08:00
|
|
|
cobj = (axys::ui::VideoPlayer*)tolua_tousertype(tolua_S,1,0);
|
2019-10-23 14:58:31 +08:00
|
|
|
|
2022-08-08 18:02:17 +08:00
|
|
|
#if _AX_DEBUG >= 1
|
2019-10-23 14:58:31 +08:00
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-08-08 18:02:17 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axys_video_VideoPlayer_setStyle'", nullptr);
|
2019-10-23 14:58:31 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 1)
|
|
|
|
{
|
2022-08-08 18:02:17 +08:00
|
|
|
axys::ui::VideoPlayer::StyleType arg0;
|
2019-10-23 14:58:31 +08:00
|
|
|
|
2022-07-12 21:31:54 +08:00
|
|
|
ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.VideoPlayer:setStyle");
|
2019-10-23 14:58:31 +08:00
|
|
|
if(!ok)
|
|
|
|
{
|
2022-08-08 18:02:17 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axys_video_VideoPlayer_setStyle'", nullptr);
|
2019-10-23 14:58:31 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
cobj->setStyle(arg0);
|
|
|
|
lua_settop(tolua_S, 1);
|
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.VideoPlayer:setStyle",argc, 1);
|
2019-10-23 14:58:31 +08:00
|
|
|
return 0;
|
|
|
|
|
2022-08-08 18:02:17 +08:00
|
|
|
#if _AX_DEBUG >= 1
|
2019-10-23 14:58:31 +08:00
|
|
|
tolua_lerror:
|
2022-08-08 18:02:17 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axys_video_VideoPlayer_setStyle'.",&tolua_err);
|
2019-10-23 14:58:31 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-08-08 18:02:17 +08:00
|
|
|
int lua_axys_video_VideoPlayer_seekTo(lua_State* tolua_S)
|
2019-10-23 14:58:31 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-08-08 18:02:17 +08:00
|
|
|
axys::ui::VideoPlayer* cobj = nullptr;
|
2019-10-23 14:58:31 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
2022-08-08 18:02:17 +08:00
|
|
|
#if _AX_DEBUG >= 1
|
2019-10-23 14:58:31 +08:00
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
2022-08-08 18:02:17 +08:00
|
|
|
#if _AX_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"axui.VideoPlayer",0,&tolua_err)) goto tolua_lerror;
|
2019-10-23 14:58:31 +08:00
|
|
|
#endif
|
|
|
|
|
2022-08-08 18:02:17 +08:00
|
|
|
cobj = (axys::ui::VideoPlayer*)tolua_tousertype(tolua_S,1,0);
|
2019-10-23 14:58:31 +08:00
|
|
|
|
2022-08-08 18:02:17 +08:00
|
|
|
#if _AX_DEBUG >= 1
|
2019-10-23 14:58:31 +08:00
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-08-08 18:02:17 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axys_video_VideoPlayer_seekTo'", nullptr);
|
2019-10-23 14:58:31 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 1)
|
|
|
|
{
|
|
|
|
double arg0;
|
|
|
|
|
2022-07-12 21:31:54 +08:00
|
|
|
ok &= luaval_to_number(tolua_S, 2,&arg0, "axui.VideoPlayer:seekTo");
|
2019-10-23 14:58:31 +08:00
|
|
|
if(!ok)
|
|
|
|
{
|
2022-08-08 18:02:17 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axys_video_VideoPlayer_seekTo'", nullptr);
|
2019-10-23 14:58:31 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
cobj->seekTo(arg0);
|
|
|
|
lua_settop(tolua_S, 1);
|
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.VideoPlayer:seekTo",argc, 1);
|
2019-10-23 14:58:31 +08:00
|
|
|
return 0;
|
|
|
|
|
2022-08-08 18:02:17 +08:00
|
|
|
#if _AX_DEBUG >= 1
|
2019-10-23 14:58:31 +08:00
|
|
|
tolua_lerror:
|
2022-08-08 18:02:17 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axys_video_VideoPlayer_seekTo'.",&tolua_err);
|
2019-10-23 14:58:31 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-08-08 18:02:17 +08:00
|
|
|
int lua_axys_video_VideoPlayer_isKeepAspectRatioEnabled(lua_State* tolua_S)
|
2019-10-23 14:58:31 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-08-08 18:02:17 +08:00
|
|
|
axys::ui::VideoPlayer* cobj = nullptr;
|
2019-10-23 14:58:31 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
2022-08-08 18:02:17 +08:00
|
|
|
#if _AX_DEBUG >= 1
|
2019-10-23 14:58:31 +08:00
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
2022-08-08 18:02:17 +08:00
|
|
|
#if _AX_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"axui.VideoPlayer",0,&tolua_err)) goto tolua_lerror;
|
2019-10-23 14:58:31 +08:00
|
|
|
#endif
|
|
|
|
|
2022-08-08 18:02:17 +08:00
|
|
|
cobj = (axys::ui::VideoPlayer*)tolua_tousertype(tolua_S,1,0);
|
2019-10-23 14:58:31 +08:00
|
|
|
|
2022-08-08 18:02:17 +08:00
|
|
|
#if _AX_DEBUG >= 1
|
2019-10-23 14:58:31 +08:00
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-08-08 18:02:17 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axys_video_VideoPlayer_isKeepAspectRatioEnabled'", nullptr);
|
2019-10-23 14:58:31 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 0)
|
|
|
|
{
|
|
|
|
if(!ok)
|
|
|
|
{
|
2022-08-08 18:02:17 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axys_video_VideoPlayer_isKeepAspectRatioEnabled'", nullptr);
|
2019-10-23 14:58:31 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
bool ret = cobj->isKeepAspectRatioEnabled();
|
|
|
|
tolua_pushboolean(tolua_S,(bool)ret);
|
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.VideoPlayer:isKeepAspectRatioEnabled",argc, 0);
|
2019-10-23 14:58:31 +08:00
|
|
|
return 0;
|
|
|
|
|
2022-08-08 18:02:17 +08:00
|
|
|
#if _AX_DEBUG >= 1
|
2019-10-23 14:58:31 +08:00
|
|
|
tolua_lerror:
|
2022-08-08 18:02:17 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axys_video_VideoPlayer_isKeepAspectRatioEnabled'.",&tolua_err);
|
2019-10-23 14:58:31 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-08-08 18:02:17 +08:00
|
|
|
int lua_axys_video_VideoPlayer_onPlayEvent(lua_State* tolua_S)
|
2019-10-23 14:58:31 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-08-08 18:02:17 +08:00
|
|
|
axys::ui::VideoPlayer* cobj = nullptr;
|
2019-10-23 14:58:31 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
2022-08-08 18:02:17 +08:00
|
|
|
#if _AX_DEBUG >= 1
|
2019-10-23 14:58:31 +08:00
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
2022-08-08 18:02:17 +08:00
|
|
|
#if _AX_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"axui.VideoPlayer",0,&tolua_err)) goto tolua_lerror;
|
2019-10-23 14:58:31 +08:00
|
|
|
#endif
|
|
|
|
|
2022-08-08 18:02:17 +08:00
|
|
|
cobj = (axys::ui::VideoPlayer*)tolua_tousertype(tolua_S,1,0);
|
2019-10-23 14:58:31 +08:00
|
|
|
|
2022-08-08 18:02:17 +08:00
|
|
|
#if _AX_DEBUG >= 1
|
2019-10-23 14:58:31 +08:00
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-08-08 18:02:17 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axys_video_VideoPlayer_onPlayEvent'", nullptr);
|
2019-10-23 14:58:31 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 1)
|
|
|
|
{
|
|
|
|
int arg0;
|
|
|
|
|
2022-07-12 21:31:54 +08:00
|
|
|
ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "axui.VideoPlayer:onPlayEvent");
|
2019-10-23 14:58:31 +08:00
|
|
|
if(!ok)
|
|
|
|
{
|
2022-08-08 18:02:17 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axys_video_VideoPlayer_onPlayEvent'", nullptr);
|
2019-10-23 14:58:31 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
cobj->onPlayEvent(arg0);
|
|
|
|
lua_settop(tolua_S, 1);
|
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.VideoPlayer:onPlayEvent",argc, 1);
|
2019-10-23 14:58:31 +08:00
|
|
|
return 0;
|
|
|
|
|
2022-08-08 18:02:17 +08:00
|
|
|
#if _AX_DEBUG >= 1
|
2019-10-23 14:58:31 +08:00
|
|
|
tolua_lerror:
|
2022-08-08 18:02:17 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axys_video_VideoPlayer_onPlayEvent'.",&tolua_err);
|
2019-10-23 14:58:31 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-08-08 18:02:17 +08:00
|
|
|
int lua_axys_video_VideoPlayer_isFullScreenEnabled(lua_State* tolua_S)
|
2019-10-23 14:58:31 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-08-08 18:02:17 +08:00
|
|
|
axys::ui::VideoPlayer* cobj = nullptr;
|
2019-10-23 14:58:31 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
2022-08-08 18:02:17 +08:00
|
|
|
#if _AX_DEBUG >= 1
|
2019-10-23 14:58:31 +08:00
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
2022-08-08 18:02:17 +08:00
|
|
|
#if _AX_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"axui.VideoPlayer",0,&tolua_err)) goto tolua_lerror;
|
2019-10-23 14:58:31 +08:00
|
|
|
#endif
|
|
|
|
|
2022-08-08 18:02:17 +08:00
|
|
|
cobj = (axys::ui::VideoPlayer*)tolua_tousertype(tolua_S,1,0);
|
2019-10-23 14:58:31 +08:00
|
|
|
|
2022-08-08 18:02:17 +08:00
|
|
|
#if _AX_DEBUG >= 1
|
2019-10-23 14:58:31 +08:00
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-08-08 18:02:17 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axys_video_VideoPlayer_isFullScreenEnabled'", nullptr);
|
2019-10-23 14:58:31 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 0)
|
|
|
|
{
|
|
|
|
if(!ok)
|
|
|
|
{
|
2022-08-08 18:02:17 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axys_video_VideoPlayer_isFullScreenEnabled'", nullptr);
|
2019-10-23 14:58:31 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
bool ret = cobj->isFullScreenEnabled();
|
|
|
|
tolua_pushboolean(tolua_S,(bool)ret);
|
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.VideoPlayer:isFullScreenEnabled",argc, 0);
|
2019-10-23 14:58:31 +08:00
|
|
|
return 0;
|
|
|
|
|
2022-08-08 18:02:17 +08:00
|
|
|
#if _AX_DEBUG >= 1
|
2019-10-23 14:58:31 +08:00
|
|
|
tolua_lerror:
|
2022-08-08 18:02:17 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axys_video_VideoPlayer_isFullScreenEnabled'.",&tolua_err);
|
2019-10-23 14:58:31 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-08-08 18:02:17 +08:00
|
|
|
int lua_axys_video_VideoPlayer_isLooping(lua_State* tolua_S)
|
2019-10-23 14:58:31 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-08-08 18:02:17 +08:00
|
|
|
axys::ui::VideoPlayer* cobj = nullptr;
|
2019-10-23 14:58:31 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
2022-08-08 18:02:17 +08:00
|
|
|
#if _AX_DEBUG >= 1
|
2019-10-23 14:58:31 +08:00
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
2022-08-08 18:02:17 +08:00
|
|
|
#if _AX_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"axui.VideoPlayer",0,&tolua_err)) goto tolua_lerror;
|
2019-10-23 14:58:31 +08:00
|
|
|
#endif
|
|
|
|
|
2022-08-08 18:02:17 +08:00
|
|
|
cobj = (axys::ui::VideoPlayer*)tolua_tousertype(tolua_S,1,0);
|
2019-10-23 14:58:31 +08:00
|
|
|
|
2022-08-08 18:02:17 +08:00
|
|
|
#if _AX_DEBUG >= 1
|
2019-10-23 14:58:31 +08:00
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-08-08 18:02:17 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axys_video_VideoPlayer_isLooping'", nullptr);
|
2019-10-23 14:58:31 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 0)
|
|
|
|
{
|
|
|
|
if(!ok)
|
|
|
|
{
|
2022-08-08 18:02:17 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axys_video_VideoPlayer_isLooping'", nullptr);
|
2019-10-23 14:58:31 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
bool ret = cobj->isLooping();
|
|
|
|
tolua_pushboolean(tolua_S,(bool)ret);
|
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.VideoPlayer:isLooping",argc, 0);
|
2019-10-23 14:58:31 +08:00
|
|
|
return 0;
|
|
|
|
|
2022-08-08 18:02:17 +08:00
|
|
|
#if _AX_DEBUG >= 1
|
2019-10-23 14:58:31 +08:00
|
|
|
tolua_lerror:
|
2022-08-08 18:02:17 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axys_video_VideoPlayer_isLooping'.",&tolua_err);
|
2019-10-23 14:58:31 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-08-08 18:02:17 +08:00
|
|
|
int lua_axys_video_VideoPlayer_isPlaying(lua_State* tolua_S)
|
2019-10-23 14:58:31 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-08-08 18:02:17 +08:00
|
|
|
axys::ui::VideoPlayer* cobj = nullptr;
|
2019-10-23 14:58:31 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
2022-08-08 18:02:17 +08:00
|
|
|
#if _AX_DEBUG >= 1
|
2019-10-23 14:58:31 +08:00
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
2022-08-08 18:02:17 +08:00
|
|
|
#if _AX_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"axui.VideoPlayer",0,&tolua_err)) goto tolua_lerror;
|
2019-10-23 14:58:31 +08:00
|
|
|
#endif
|
|
|
|
|
2022-08-08 18:02:17 +08:00
|
|
|
cobj = (axys::ui::VideoPlayer*)tolua_tousertype(tolua_S,1,0);
|
2019-10-23 14:58:31 +08:00
|
|
|
|
2022-08-08 18:02:17 +08:00
|
|
|
#if _AX_DEBUG >= 1
|
2019-10-23 14:58:31 +08:00
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-08-08 18:02:17 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axys_video_VideoPlayer_isPlaying'", nullptr);
|
2019-10-23 14:58:31 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 0)
|
|
|
|
{
|
|
|
|
if(!ok)
|
|
|
|
{
|
2022-08-08 18:02:17 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axys_video_VideoPlayer_isPlaying'", nullptr);
|
2019-10-23 14:58:31 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
bool ret = cobj->isPlaying();
|
|
|
|
tolua_pushboolean(tolua_S,(bool)ret);
|
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.VideoPlayer:isPlaying",argc, 0);
|
2019-10-23 14:58:31 +08:00
|
|
|
return 0;
|
|
|
|
|
2022-08-08 18:02:17 +08:00
|
|
|
#if _AX_DEBUG >= 1
|
2019-10-23 14:58:31 +08:00
|
|
|
tolua_lerror:
|
2022-08-08 18:02:17 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axys_video_VideoPlayer_isPlaying'.",&tolua_err);
|
2019-10-23 14:58:31 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-08-08 18:02:17 +08:00
|
|
|
int lua_axys_video_VideoPlayer_setLooping(lua_State* tolua_S)
|
2019-10-23 14:58:31 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-08-08 18:02:17 +08:00
|
|
|
axys::ui::VideoPlayer* cobj = nullptr;
|
2019-10-23 14:58:31 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
2022-08-08 18:02:17 +08:00
|
|
|
#if _AX_DEBUG >= 1
|
2019-10-23 14:58:31 +08:00
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
2022-08-08 18:02:17 +08:00
|
|
|
#if _AX_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"axui.VideoPlayer",0,&tolua_err)) goto tolua_lerror;
|
2019-10-23 14:58:31 +08:00
|
|
|
#endif
|
|
|
|
|
2022-08-08 18:02:17 +08:00
|
|
|
cobj = (axys::ui::VideoPlayer*)tolua_tousertype(tolua_S,1,0);
|
2019-10-23 14:58:31 +08:00
|
|
|
|
2022-08-08 18:02:17 +08:00
|
|
|
#if _AX_DEBUG >= 1
|
2019-10-23 14:58:31 +08:00
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-08-08 18:02:17 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axys_video_VideoPlayer_setLooping'", nullptr);
|
2019-10-23 14:58:31 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 1)
|
|
|
|
{
|
|
|
|
bool arg0;
|
|
|
|
|
2022-07-12 21:31:54 +08:00
|
|
|
ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.VideoPlayer:setLooping");
|
2019-10-23 14:58:31 +08:00
|
|
|
if(!ok)
|
|
|
|
{
|
2022-08-08 18:02:17 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axys_video_VideoPlayer_setLooping'", nullptr);
|
2019-10-23 14:58:31 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
cobj->setLooping(arg0);
|
|
|
|
lua_settop(tolua_S, 1);
|
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.VideoPlayer:setLooping",argc, 1);
|
2019-10-23 14:58:31 +08:00
|
|
|
return 0;
|
|
|
|
|
2022-08-08 18:02:17 +08:00
|
|
|
#if _AX_DEBUG >= 1
|
2019-10-23 14:58:31 +08:00
|
|
|
tolua_lerror:
|
2022-08-08 18:02:17 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axys_video_VideoPlayer_setLooping'.",&tolua_err);
|
2019-10-23 14:58:31 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-08-08 18:02:17 +08:00
|
|
|
int lua_axys_video_VideoPlayer_setUserInputEnabled(lua_State* tolua_S)
|
2019-10-23 14:58:31 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-08-08 18:02:17 +08:00
|
|
|
axys::ui::VideoPlayer* cobj = nullptr;
|
2019-10-23 14:58:31 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
2022-08-08 18:02:17 +08:00
|
|
|
#if _AX_DEBUG >= 1
|
2019-10-23 14:58:31 +08:00
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
2022-08-08 18:02:17 +08:00
|
|
|
#if _AX_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertype(tolua_S,1,"axui.VideoPlayer",0,&tolua_err)) goto tolua_lerror;
|
2019-10-23 14:58:31 +08:00
|
|
|
#endif
|
|
|
|
|
2022-08-08 18:02:17 +08:00
|
|
|
cobj = (axys::ui::VideoPlayer*)tolua_tousertype(tolua_S,1,0);
|
2019-10-23 14:58:31 +08:00
|
|
|
|
2022-08-08 18:02:17 +08:00
|
|
|
#if _AX_DEBUG >= 1
|
2019-10-23 14:58:31 +08:00
|
|
|
if (!cobj)
|
|
|
|
{
|
2022-08-08 18:02:17 +08:00
|
|
|
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_axys_video_VideoPlayer_setUserInputEnabled'", nullptr);
|
2019-10-23 14:58:31 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 1)
|
|
|
|
{
|
|
|
|
bool arg0;
|
|
|
|
|
2022-07-12 21:31:54 +08:00
|
|
|
ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axui.VideoPlayer:setUserInputEnabled");
|
2019-10-23 14:58:31 +08:00
|
|
|
if(!ok)
|
|
|
|
{
|
2022-08-08 18:02:17 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axys_video_VideoPlayer_setUserInputEnabled'", nullptr);
|
2019-10-23 14:58:31 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
cobj->setUserInputEnabled(arg0);
|
|
|
|
lua_settop(tolua_S, 1);
|
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.VideoPlayer:setUserInputEnabled",argc, 1);
|
2019-10-23 14:58:31 +08:00
|
|
|
return 0;
|
|
|
|
|
2022-08-08 18:02:17 +08:00
|
|
|
#if _AX_DEBUG >= 1
|
2019-10-23 14:58:31 +08:00
|
|
|
tolua_lerror:
|
2022-08-08 18:02:17 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axys_video_VideoPlayer_setUserInputEnabled'.",&tolua_err);
|
2019-10-23 14:58:31 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2022-08-08 18:02:17 +08:00
|
|
|
int lua_axys_video_VideoPlayer_create(lua_State* tolua_S)
|
2019-10-23 14:58:31 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
|
|
|
bool ok = true;
|
|
|
|
|
2022-08-08 18:02:17 +08:00
|
|
|
#if _AX_DEBUG >= 1
|
2019-10-23 14:58:31 +08:00
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
2022-08-08 18:02:17 +08:00
|
|
|
#if _AX_DEBUG >= 1
|
2022-07-12 21:31:54 +08:00
|
|
|
if (!tolua_isusertable(tolua_S,1,"axui.VideoPlayer",0,&tolua_err)) goto tolua_lerror;
|
2019-10-23 14:58:31 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S) - 1;
|
|
|
|
|
|
|
|
if (argc == 0)
|
|
|
|
{
|
|
|
|
if(!ok)
|
|
|
|
{
|
2022-08-08 18:02:17 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axys_video_VideoPlayer_create'", nullptr);
|
2019-10-23 14:58:31 +08:00
|
|
|
return 0;
|
|
|
|
}
|
2022-08-08 18:02:17 +08:00
|
|
|
axys::ui::VideoPlayer* ret = axys::ui::VideoPlayer::create();
|
|
|
|
object_to_luaval<axys::ui::VideoPlayer>(tolua_S, "axui.VideoPlayer",(axys::ui::VideoPlayer*)ret);
|
2019-10-23 14:58:31 +08:00
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "axui.VideoPlayer:create",argc, 0);
|
2019-10-23 14:58:31 +08:00
|
|
|
return 0;
|
2022-08-08 18:02:17 +08:00
|
|
|
#if _AX_DEBUG >= 1
|
2019-10-23 14:58:31 +08:00
|
|
|
tolua_lerror:
|
2022-08-08 18:02:17 +08:00
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axys_video_VideoPlayer_create'.",&tolua_err);
|
2019-10-23 14:58:31 +08:00
|
|
|
#endif
|
|
|
|
return 0;
|
|
|
|
}
|
2022-08-08 18:02:17 +08:00
|
|
|
int lua_axys_video_VideoPlayer_constructor(lua_State* tolua_S)
|
2019-10-23 14:58:31 +08:00
|
|
|
{
|
|
|
|
int argc = 0;
|
2022-08-08 18:02:17 +08:00
|
|
|
axys::ui::VideoPlayer* cobj = nullptr;
|
2019-10-23 14:58:31 +08:00
|
|
|
bool ok = true;
|
|
|
|
|
2022-08-08 18:02:17 +08:00
|
|
|
#if _AX_DEBUG >= 1
|
2019-10-23 14:58:31 +08:00
|
|
|
tolua_Error tolua_err;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
argc = lua_gettop(tolua_S)-1;
|
|
|
|
if (argc == 0)
|
|
|
|
{
|
|
|
|
if(!ok)
|
|
|
|
{
|
2022-08-08 18:02:17 +08:00
|
|
|
tolua_error(tolua_S,"invalid arguments in function 'lua_axys_video_VideoPlayer_constructor'", nullptr);
|
2019-10-23 14:58:31 +08:00
|
|
|
return 0;
|
|
|
|
}
|
2022-08-08 18:02:17 +08:00
|
|
|
cobj = new axys::ui::VideoPlayer();
|
2019-10-23 14:58:31 +08:00
|
|
|
cobj->autorelease();
|
|
|
|
int ID = (int)cobj->_ID ;
|
|
|
|
int* luaID = &cobj->_luaID ;
|
2022-07-12 21:31:54 +08:00
|
|
|
toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"axui.VideoPlayer");
|
2019-10-23 14:58:31 +08:00
|
|
|
return 1;
|
|
|
|
}
|
2022-07-12 21:31:54 +08:00
|
|
|
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axui.VideoPlayer:VideoPlayer",argc, 0);
|
2019-10-23 14:58:31 +08:00
|
|
|
return 0;
|
|
|
|
|
2022-08-08 18:02:17 +08:00
|
|
|
#if _AX_DEBUG >= 1
|
|
|
|
tolua_error(tolua_S,"#ferror in function 'lua_axys_video_VideoPlayer_constructor'.",&tolua_err);
|
2019-10-23 14:58:31 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2022-08-08 18:02:17 +08:00
|
|
|
static int lua_axys_video_VideoPlayer_finalize(lua_State* tolua_S)
|
2019-10-23 14:58:31 +08:00
|
|
|
{
|
|
|
|
printf("luabindings: finalizing LUA object (VideoPlayer)");
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2022-08-08 18:02:17 +08:00
|
|
|
int lua_register_axys_video_VideoPlayer(lua_State* tolua_S)
|
2019-10-23 14:58:31 +08:00
|
|
|
{
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_usertype(tolua_S,"axui.VideoPlayer");
|
|
|
|
tolua_cclass(tolua_S,"VideoPlayer","axui.VideoPlayer","axui.Widget",nullptr);
|
2019-10-23 14:58:31 +08:00
|
|
|
|
|
|
|
tolua_beginmodule(tolua_S,"VideoPlayer");
|
2022-08-08 18:02:17 +08:00
|
|
|
tolua_function(tolua_S,"new",lua_axys_video_VideoPlayer_constructor);
|
|
|
|
tolua_function(tolua_S,"getFileName",lua_axys_video_VideoPlayer_getFileName);
|
|
|
|
tolua_function(tolua_S,"getURL",lua_axys_video_VideoPlayer_getURL);
|
|
|
|
tolua_function(tolua_S,"play",lua_axys_video_VideoPlayer_play);
|
|
|
|
tolua_function(tolua_S,"isUserInputEnabled",lua_axys_video_VideoPlayer_isUserInputEnabled);
|
|
|
|
tolua_function(tolua_S,"setKeepAspectRatioEnabled",lua_axys_video_VideoPlayer_setKeepAspectRatioEnabled);
|
|
|
|
tolua_function(tolua_S,"stop",lua_axys_video_VideoPlayer_stop);
|
|
|
|
tolua_function(tolua_S,"setFullScreenEnabled",lua_axys_video_VideoPlayer_setFullScreenEnabled);
|
|
|
|
tolua_function(tolua_S,"setPlayRate",lua_axys_video_VideoPlayer_setPlayRate);
|
|
|
|
tolua_function(tolua_S,"setFileName",lua_axys_video_VideoPlayer_setFileName);
|
|
|
|
tolua_function(tolua_S,"setURL",lua_axys_video_VideoPlayer_setURL);
|
|
|
|
tolua_function(tolua_S,"setStyle",lua_axys_video_VideoPlayer_setStyle);
|
|
|
|
tolua_function(tolua_S,"seekTo",lua_axys_video_VideoPlayer_seekTo);
|
|
|
|
tolua_function(tolua_S,"isKeepAspectRatioEnabled",lua_axys_video_VideoPlayer_isKeepAspectRatioEnabled);
|
|
|
|
tolua_function(tolua_S,"onPlayEvent",lua_axys_video_VideoPlayer_onPlayEvent);
|
|
|
|
tolua_function(tolua_S,"isFullScreenEnabled",lua_axys_video_VideoPlayer_isFullScreenEnabled);
|
|
|
|
tolua_function(tolua_S,"isLooping",lua_axys_video_VideoPlayer_isLooping);
|
|
|
|
tolua_function(tolua_S,"isPlaying",lua_axys_video_VideoPlayer_isPlaying);
|
|
|
|
tolua_function(tolua_S,"setLooping",lua_axys_video_VideoPlayer_setLooping);
|
|
|
|
tolua_function(tolua_S,"setUserInputEnabled",lua_axys_video_VideoPlayer_setUserInputEnabled);
|
|
|
|
tolua_function(tolua_S,"create", lua_axys_video_VideoPlayer_create);
|
2019-10-23 14:58:31 +08:00
|
|
|
tolua_endmodule(tolua_S);
|
2022-08-08 18:02:17 +08:00
|
|
|
auto typeName = typeid(axys::ui::VideoPlayer).name(); // rtti is literal storage
|
2022-07-12 21:31:54 +08:00
|
|
|
g_luaType[reinterpret_cast<uintptr_t>(typeName)] = "axui.VideoPlayer";
|
|
|
|
g_typeCast[typeName] = "axui.VideoPlayer";
|
2019-10-23 14:58:31 +08:00
|
|
|
return 1;
|
|
|
|
}
|
2022-08-08 18:02:17 +08:00
|
|
|
TOLUA_API int register_all_axys_video(lua_State* tolua_S)
|
2019-10-23 14:58:31 +08:00
|
|
|
{
|
|
|
|
tolua_open(tolua_S);
|
|
|
|
|
2022-07-12 21:31:54 +08:00
|
|
|
tolua_module(tolua_S,"axui",0);
|
|
|
|
tolua_beginmodule(tolua_S,"axui");
|
2019-10-23 14:58:31 +08:00
|
|
|
|
2022-08-08 18:02:17 +08:00
|
|
|
lua_register_axys_video_VideoPlayer(tolua_S);
|
2019-10-23 14:58:31 +08:00
|
|
|
|
|
|
|
tolua_endmodule(tolua_S);
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|