CLuaInstance: Add parameter info1/info2 to PlayFile()

- This parameter display in info viewer instead of epg data


Origin commit data
------------------
Branch: ni/coolstream
Commit: b6f1963f2c
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2014-09-10 (Wed, 10 Sep 2014)



------------------
This commit was generated by Migit
This commit is contained in:
Michael Liebmann
2014-09-10 21:13:29 +02:00
parent 6b81b487f7
commit dfb3be64db
3 changed files with 14 additions and 3 deletions

View File

@@ -612,14 +612,22 @@ int CLuaInstance::PlayFile(lua_State *L)
return 0;
}
const char *title;
const char *info1 = "";
const char *info2 = "";
const char *fname;
title = luaL_checkstring(L, 2);
fname = luaL_checkstring(L, 3);
if (numargs > 3)
info1 = luaL_checkstring(L, 4);
if (numargs > 4)
info2 = luaL_checkstring(L, 5);
printf("CLuaInstance::%s: title %s file %s\n", __func__, title, fname);
std::string st(title);
std::string si1(info1);
std::string si2(info2);
std::string sf(fname);
CMoviePlayerGui::getInstance().SetFile(st, sf);
CMoviePlayerGui::getInstance().SetFile(st, sf, si1, si2);
CMoviePlayerGui::getInstance().exec(NULL, "http");
return 0;
}