From 48bb3789d6b60c072499bbc9c2b0d099daa16869 Mon Sep 17 00:00:00 2001 From: Suresh Khurdiya Date: Wed, 2 Aug 2023 12:27:26 +0530 Subject: [PATCH] HUMAXEOS-4923 : Setting falvour ES3 for teletext --- WebKitBrowser/WebKitImplementation.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/WebKitBrowser/WebKitImplementation.cpp b/WebKitBrowser/WebKitImplementation.cpp index 3b095ecd5a..22d8e41a10 100644 --- a/WebKitBrowser/WebKitImplementation.cpp +++ b/WebKitBrowser/WebKitImplementation.cpp @@ -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)