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

HUMAXEOS-4923 : Setting falvour ES3 for teletext #299

Open
wants to merge 1 commit into
base: lgi-main-20220329
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
10 changes: 10 additions & 0 deletions WebKitBrowser/WebKitImplementation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,16 @@ void onURLChangeWorkarounds(const std::string &url, WKPageRef page)
SYSLOG(Logging::Notification, (_T("Deactivating convert playready key ID for Shaka")));
WKContextSetEnv(WKPageGetContext(page), WKStringCreateWithUTF8CString("CONVERT_PLAYREADY_KEY_ID_FOR_SHAKA"), WKStringCreateWithUTF8CString("0"), true, false);
}
fprintf(stderr,"Suresh onURLChangeWorkarounds : URL: %s", url);
if (url.find("com.libertyglobal.app.teletext") != std::string::npos) {
SYSLOG(Logging::Notification, (_T("Activating Teletext for flavor CAIRO_GL_FLAVOR_ES3")));
fprintf(stderr, "Suresh Activating Teletext for flavor CAIRO_GL_FLAVOR_ES3");
WKContextSetEnv(WKPageGetContext(page), WKStringCreateWithUTF8CString("IS_CAIRO_GL_FLAVOR_ENABLED_FOR_TELETEXT"), WKStringCreateWithUTF8CString("1"), true, false);
} else {
SYSLOG(Logging::Notification, (_T("Deactivating teletext for for flavor CAIRO_GL_FLAVOR_ES3")));
fprintf(stderr, "Suresh Deactivating Teletext for flavor CAIRO_GL_FLAVOR_ES3");
WKContextSetEnv(WKPageGetContext(page), WKStringCreateWithUTF8CString("IS_CAIRO_GL_FLAVOR_ENABLED_FOR_TELETEXT"), WKStringCreateWithUTF8CString("0"), true, false);
}
}

std::string getMainConfigValue(const std::string& key)
Expand Down