Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RIALTO-725: Add possibility to create Rialto session in createDisplay #6087

Open
wants to merge 1 commit into
base: sprint/25Q1
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions RDKShell/RDKShell.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3415,6 +3415,33 @@ namespace WPEFramework {
if (false == result) {
response["message"] = "failed to create display";
}
else
{
#ifdef ENABLE_RIALTO_FEATURE
if (parameters.HasLabel("rialtoSocket"))
{
string rialtoSocket = parameters["rialtoSocket"].String();

if (rialtoConnector->initialized() == false)
{
LOGWARN("Initializing rialto connector....");
rialtoConnector->initialize();
}

LOGWARN("Creating app session ....");
if (rialtoConnector->createAppSession(client, displayName, rialtoSocket) == false)
{
response["message"] = "Rialto app session initialisation failed";
result = false;
}
else if (rialtoConnector->waitForStateChange(client, RialtoServerStates::ACTIVE, RIALTO_TIMEOUT_MILLIS) == false)
{
response["message"] = "Rialto app session not ready.";
result = false;
}
}
#endif //ENABLE_RIALTO_FEATURE
}
}
returnResponse(result);
}
Expand Down
Loading