mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-28 16:01:10 +02:00
CLuaInstVideo: Add getNeutrinoMode()
- Set Lua api version to 1.28
Example:
video = video.new()
if video.getNeutrinoMode() == NMODE.TS then
messagebox.exec{title="Attention!", text="Movie player is busy.", buttons={ "ok" } }
end
Origin commit data
------------------
Branch: ni/coolstream
Commit: 473af7b2ea
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2015-12-14 (Mon, 14 Dec 2015)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -307,7 +307,6 @@ static void set_lua_variables(lua_State *L)
|
||||
{ NULL, 0 }
|
||||
};
|
||||
|
||||
|
||||
table_key curl_status[] =
|
||||
{
|
||||
{ "OK", (lua_Integer)CLuaInstCurl::LUA_CURL_OK },
|
||||
@@ -318,6 +317,23 @@ static void set_lua_variables(lua_State *L)
|
||||
{ NULL, 0 }
|
||||
};
|
||||
|
||||
table_key neutrino_mode[] =
|
||||
{
|
||||
{ "UNKNOWN", (lua_Integer)CNeutrinoApp::mode_unknown },
|
||||
{ "TV", (lua_Integer)CNeutrinoApp::mode_tv },
|
||||
{ "RADIO", (lua_Integer)CNeutrinoApp::mode_radio },
|
||||
{ "SCART", (lua_Integer)CNeutrinoApp::mode_scart },
|
||||
{ "STANDBY", (lua_Integer)CNeutrinoApp::mode_standby },
|
||||
{ "AUDIO", (lua_Integer)CNeutrinoApp::mode_audio },
|
||||
{ "PIC", (lua_Integer)CNeutrinoApp::mode_pic },
|
||||
{ "TS", (lua_Integer)CNeutrinoApp::mode_ts },
|
||||
{ "OFF", (lua_Integer)CNeutrinoApp::mode_off },
|
||||
{ "WEBTV", (lua_Integer)CNeutrinoApp::mode_webtv },
|
||||
{ "MASK", (lua_Integer)CNeutrinoApp::mode_mask },
|
||||
{ "NOREZAP", (lua_Integer)CNeutrinoApp::norezap },
|
||||
{ NULL, 0 }
|
||||
};
|
||||
|
||||
/* list of environment variable arrays to be exported */
|
||||
lua_envexport e[] =
|
||||
{
|
||||
@@ -331,6 +347,7 @@ static void set_lua_variables(lua_State *L)
|
||||
{ "CC", ccomponents },
|
||||
{ "DYNFONT", dynfont },
|
||||
{ "CURL", curl_status },
|
||||
{ "NMODE", neutrino_mode },
|
||||
{ NULL, NULL }
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user