--- PLAYBACK START --- uint8 playback_start()
| 1208 | // --- PLAYBACK START --- |
| 1209 | // uint8 playback_start() |
| 1210 | NymphMessage* playback_start(int session, NymphMessage* msg, void* data) { |
| 1211 | NymphMessage* returnMsg = msg->getReplyMessage(); |
| 1212 | |
| 1213 | if (serverMode == NCS_MODE_MASTER) { |
| 1214 | for (int i = 0; i < slave_remotes.size(); ++i) { |
| 1215 | NymphCastSlaveRemote& rm = slave_remotes[i]; |
| 1216 | std::vector<NymphType*> values; |
| 1217 | std::string result; |
| 1218 | NymphType* returnValue = 0; |
| 1219 | if (!NymphRemoteServer::callMethod(rm.handle, "playback_start", values, returnValue, result)) { |
| 1220 | // TODO: |
| 1221 | } |
| 1222 | |
| 1223 | delete returnValue; |
| 1224 | } |
| 1225 | } |
| 1226 | |
| 1227 | SDL_Event event; |
| 1228 | event.type = SDL_KEYDOWN; |
| 1229 | event.key.keysym.sym = SDLK_SPACE; |
| 1230 | SDL_PushEvent(&event); |
| 1231 | |
| 1232 | playerPaused = false; |
| 1233 | |
| 1234 | // Send status update to clients. |
| 1235 | sendGlobalStatusUpdate(); |
| 1236 | |
| 1237 | returnMsg->setResultValue(new NymphType((uint8_t) 0)); |
| 1238 | msg->discard(); |
| 1239 | |
| 1240 | return returnMsg; |
| 1241 | } |
| 1242 | |
| 1243 | |
| 1244 | // --- PLAYBACK STOP --- |
nothing calls this directly
no test coverage detected