The patch allows you to launch an external application with any parameters, regardless of the plugin config.
I use it to launch the browser with the desired url.
Used Plugin::Service() function.
Ulrich Eckhardt look at it please.
The patch allows you to launch an external application with any parameters, regardless of the plugin config.
I use it to launch the browser with the desired url.
Used Plugin::Service() function.
Ulrich Eckhardt look at it please.
It is a little bit unclear to me how to use this feature. Maybe you can add a small example to the README?
Caller code example:
struct sPlayerArgs {
string mMenuEntry;
string mPlayerCommand;
ePlayMode mPlayMode;
bool mSlaveMode;
bool mDeactivateRemotes;
bool mBlockMenu;
};
sPlayerArgs pa;
pa.mMenuEntry = "browser";
pa.mPlayerCommand = *cString::sprintf("DISPLAY=:0 %s %s", "/usr/bin/chromium-browser --kiosk", "https://youtube.com/tv");
pa.mPlayMode = pmExtern_THIS_SHOULD_BE_AVOIDED;
pa.mSlaveMode = false;
pa.mDeactivateRemotes = true;
pa.mBlockMenu = false;
cPluginManager::CallFirstService("Run External", &pa);
Display More
Sorry, I have no clue how to use this feature. Can you give at least an example how you use it?
https://github.com/ua0lnj/vdr-plu…hbbtvmenu.c#L84
Launch the browser with the desired URL.
I have released 0.4.0 with the patch and a minor fix for a compiler warning.
Don’t have an account yet? Register yourself now and be a part of our community!