gui/movieplayer.cpp: split live url via lua code to be used from other code

This commit is contained in:
[CST] Focus
2016-03-04 13:03:32 +03:00
parent 9fc9b228ed
commit 54d26aed1c
2 changed files with 66 additions and 58 deletions

View File

@@ -171,7 +171,7 @@ class CMoviePlayerGui : public CMenuTarget
std::string Path_local;
int menu_ret;
bool autoshot_done;
std::vector<livestream_info_t> liveStreamList;
//std::vector<livestream_info_t> liveStreamList;
/* playback from bookmark */
static CBookmarkManager * bookmarkmanager;
@@ -261,6 +261,7 @@ class CMoviePlayerGui : public CMenuTarget
bool getBlockedFromPlugin() { return blockedFromPlugin; };
void setLuaInfoFunc(lua_State* L, bool func) { luaState = L; haveLuaInfoFunc = func; };
void getLivestreamInfo(std::string *i1, std::string *i2) { *i1=livestreamInfo1; *i2=livestreamInfo2; };
bool getLiveUrl(const t_channel_id chan, const std::string &url, const std::string &script, std::string &realUrl, std::string &_pretty_name, std::string &info1, std::string &info2);
};
#endif