@@ -83,7 +83,7 @@ namespace WPEFramework {
83
83
return " Failed to get IHdcpProfile interface" ;
84
84
}
85
85
86
- // Query the HDCP status
86
+
87
87
Exchange::IHdcpProfile::HDCPStatus _hdcpstatus;
88
88
bool _success = false ;
89
89
_remotStoreObject->GetHDCPStatus (_hdcpstatus, _success);
@@ -120,7 +120,7 @@ namespace WPEFramework {
120
120
{
121
121
LOGINFO (" Got IScreenCapture interface-%p" , _remotStoreObject1);
122
122
}
123
- // Query the screen capture status
123
+
124
124
Exchange::IScreenCapture::Result result;
125
125
_remotStoreObject1->UploadScreenCapture (" http://server/cgi-bin/upload.cgi" ," 12345" ,result);
126
126
if (!result.success ) {
@@ -129,35 +129,14 @@ namespace WPEFramework {
129
129
return " UploadScreenCapture failed" ;
130
130
}
131
131
LOGINFO (" UploadScreenCapture: result: %d" , result.success );
132
- // // Query the notification interface
133
- // Exchange::IHdcpProfile::INotification* notification = m_service->QueryInterfaceByCallsign<Exchange::IHdcpProfile::INotification>("org.rdk.HdcpProfile");
134
- // if (notification == nullptr) {
135
- // LOGINFO("Failed to get notification interface");
136
- // _remotStoreObject->Release();
137
- // return "Failed to get notification interface";
138
- // }
139
- // else
140
- // {
141
- // LOGINFO("Got notification interface-%p", notification);
142
- // }
143
132
144
- // Register the notification
145
- _remotStoreObject->Register (&_notification);
146
-
147
- _remotStoreObject1->Register (&_notification1);
148
-
149
- // //Release the notification interface
150
- // notification->Release();
151
-
152
- // // Release the remote store object
153
- // _remotStoreObject->Release();
154
133
155
134
// On success, return an empty string
156
135
return string ();
157
136
}
158
137
159
138
160
- // define the onDisplayConnectionChanged method
139
+
161
140
void HdcpProfileClient::OnDisplayConnectionChanged (const Exchange::IHdcpProfile::HDCPStatus& hdcpstatus)
162
141
{
163
142
LOGINFO (" OnDisplayConnectionChanged callback triggered: isConnected: %d isHDCPCompliant: %d isHDCPEnabled: %d hdcpReason: %d supportedHDCPVersion: %s receiverHDCPVersion: %s currentHDCPVersion: %s" ,
0 commit comments