MCPcopy Create free account
hub / github.com/MayaPosch/NymphCast / sendStatusUpdate

Function sendStatusUpdate

src/server/NymphCastServer.cpp:341–352  ·  view source on GitHub ↗

--- SEND STATUS UPDATE ---

Source from the content-addressed store, hash-verified

339
340// --- SEND STATUS UPDATE ---
341void 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 ---

Callers 2

streamTrackFunction · 0.85
playback_urlFunction · 0.85

Calls 2

getPlaybackStatusFunction · 0.85
push_backMethod · 0.80

Tested by

no test coverage detected