--- SEND STATUS UPDATE ---
| 339 | |
| 340 | // --- SEND STATUS UPDATE --- |
| 341 | void sendStatusUpdate(uint32_t handle) { |
| 342 | // Call the status update callback with the current playback status. |
| 343 | std::vector<NymphType*> values; |
| 344 | std::map<std::string, NymphPair>* status = getPlaybackStatus(); |
| 345 | values.push_back(new NymphType(status, true)); |
| 346 | NymphType* resVal = 0; |
| 347 | std::string result; |
| 348 | if (!NymphRemoteClient::callCallback(handle, "MediaStatusCallback", values, result)) { |
| 349 | NYMPH_LOG_ERROR("Calling media status callback failed: " + result); |
| 350 | return; |
| 351 | } |
| 352 | } |
| 353 | |
| 354 | |
| 355 | // --- SEND GLOBAL STATUS UPDATE --- |
no test coverage detected