@@ -36,6 +36,10 @@ std::shared_ptr<IMediaKeysCapabilitiesIpcFactory> IMediaKeysCapabilitiesIpcFacto
3636 catch (const std::exception &e)
3737 {
3838 RIALTO_CLIENT_LOG_ERROR (" Failed to create the media keys capabilities ipc factory, reason: %s" , e.what ());
39+ char telemetryBuff[128 ] = {0 };
40+ snprintf (telemetryBuff, sizeof (telemetryBuff),
41+ " Failed to create the media keys capabilities ipc factory, reason: %s" , e.what ());
42+ TELEMETRY_EVENT_STRING (" Rialto Client - MediaKeysCapabilitiesIpc" , telemetryBuff);
3943 }
4044
4145 return factory;
@@ -58,6 +62,10 @@ std::shared_ptr<IMediaKeysCapabilities> MediaKeysCapabilitiesIpcFactory::getMedi
5862 catch (const std::exception &e)
5963 {
6064 RIALTO_CLIENT_LOG_ERROR (" Failed to create the media keys capabilities ipc, reason: %s" , e.what ());
65+ char telemetryBuff[128 ] = {0 };
66+ snprintf (telemetryBuff, sizeof (telemetryBuff),
67+ " Failed to create the media keys capabilities ipc, reason: %s" , e.what ());
68+ TELEMETRY_EVENT_STRING (" Rialto Client - MediaKeysCapabilitiesIpc" , telemetryBuff);
6169 }
6270
6371 MediaKeysCapabilitiesIpcFactory::m_mediaKeysCapabilitiesIpc = mediaKeysCapabilitiesIpc;
@@ -115,6 +123,10 @@ std::vector<std::string> MediaKeysCapabilitiesIpc::getSupportedKeySystems()
115123 if (ipcController->Failed ())
116124 {
117125 RIALTO_CLIENT_LOG_ERROR (" failed to get supported key systems due to '%s'" , ipcController->ErrorText ().c_str ());
126+ char telemetryBuff[128 ] = {0 };
127+ snprintf (telemetryBuff, sizeof (telemetryBuff), " Failed to get supported key systems due to '%s'" ,
128+ ipcController->ErrorText ().c_str ());
129+ TELEMETRY_EVENT_STRING (" Rialto Client - MediaKeysCapabilitiesIpc" , telemetryBuff);
118130 return {};
119131 }
120132
@@ -144,6 +156,10 @@ bool MediaKeysCapabilitiesIpc::supportsKeySystem(const std::string &keySystem)
144156 if (ipcController->Failed ())
145157 {
146158 RIALTO_CLIENT_LOG_ERROR (" failed to supports key system due to '%s'" , ipcController->ErrorText ().c_str ());
159+ char telemetryBuff[128 ] = {0 };
160+ snprintf (telemetryBuff, sizeof (telemetryBuff), " Failed to support key systems due to '%s'" ,
161+ ipcController->ErrorText ().c_str ());
162+ TELEMETRY_EVENT_STRING (" Rialto Client - MediaKeysCapabilitiesIpc" , telemetryBuff);
147163 return false ;
148164 }
149165
@@ -175,6 +191,10 @@ bool MediaKeysCapabilitiesIpc::getSupportedKeySystemVersion(const std::string &k
175191 {
176192 RIALTO_CLIENT_LOG_ERROR (" failed to get supported key system version due to '%s'" ,
177193 ipcController->ErrorText ().c_str ());
194+ char telemetryBuff[128 ] = {0 };
195+ snprintf (telemetryBuff, sizeof (telemetryBuff), " Failed to get supported key system versions due to '%s'" ,
196+ ipcController->ErrorText ().c_str ());
197+ TELEMETRY_EVENT_STRING (" Rialto Client - MediaKeysCapabilitiesIpc" , telemetryBuff);
178198 return false ;
179199 }
180200 version = response.version ();
@@ -207,6 +227,10 @@ bool MediaKeysCapabilitiesIpc::isServerCertificateSupported(const std::string &k
207227 {
208228 RIALTO_CLIENT_LOG_ERROR (" failed to check if server certificate is supported due to '%s'" ,
209229 ipcController->ErrorText ().c_str ());
230+ char telemetryBuff[128 ] = {0 };
231+ snprintf (telemetryBuff, sizeof (telemetryBuff), " Failed to check if server certificate is supported due to '%s'" ,
232+ ipcController->ErrorText ().c_str ());
233+ TELEMETRY_EVENT_STRING (" Rialto Client - MediaKeysCapabilitiesIpc" , telemetryBuff);
210234 return false ;
211235 }
212236
0 commit comments