mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-08 14:18:29 +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:
@@ -61,6 +61,7 @@ void CLuaInstVideo::LuaVideoRegister(lua_State *L)
|
||||
{ "zapitStopPlayBack", CLuaInstVideo::zapitStopPlayBack },
|
||||
{ "channelRezap", CLuaInstVideo::channelRezap },
|
||||
{ "createChannelIDfromUrl", CLuaInstVideo::createChannelIDfromUrl },
|
||||
{ "getNeutrinoMode", CLuaInstVideo::getNeutrinoMode },
|
||||
{ "__gc", CLuaInstVideo::VideoDelete },
|
||||
{ NULL, NULL }
|
||||
};
|
||||
@@ -186,6 +187,12 @@ int CLuaInstVideo::createChannelIDfromUrl(lua_State *L)
|
||||
return 1;
|
||||
}
|
||||
|
||||
int CLuaInstVideo::getNeutrinoMode(lua_State *L)
|
||||
{
|
||||
lua_pushinteger(L, (lua_Integer)CNeutrinoApp::getInstance()->getMode());
|
||||
return 1;
|
||||
}
|
||||
|
||||
int CLuaInstVideo::VideoDelete(lua_State *L)
|
||||
{
|
||||
CLuaVideo *D = VideoCheckData(L, 1);
|
||||
|
Reference in New Issue
Block a user