| 197 | } |
| 198 | |
| 199 | bool RundownHttpGetWidget::executeCommand(Playout::PlayoutType type) |
| 200 | { |
| 201 | if (type == Playout::PlayoutType::Stop) |
| 202 | executeStop(); |
| 203 | else if ((type == Playout::PlayoutType::Play && !this->command.getTriggerOnNext()) || type == Playout::PlayoutType::Update) |
| 204 | { |
| 205 | if (this->command.getDelay() < 0) |
| 206 | return true; |
| 207 | |
| 208 | if (!this->command.getUrl().isEmpty()) |
| 209 | { |
| 210 | this->itemScheduler.schedulePlayAndStop(this->command.getDelay(), 0, Output::DEFAULT_DELAY_IN_MILLISECONDS); |
| 211 | } |
| 212 | } |
| 213 | else if (type == Playout::PlayoutType::PlayNow) |
| 214 | executePlay(); |
| 215 | else if (type == Playout::PlayoutType::Next && this->command.getTriggerOnNext()) |
| 216 | executePlay(); |
| 217 | else if (type == Playout::PlayoutType::Clear) |
| 218 | executeStop(); |
| 219 | else if (type == Playout::PlayoutType::ClearVideoLayer) |
| 220 | executeStop(); |
| 221 | else if (type == Playout::PlayoutType::ClearChannel) |
| 222 | executeStop(); |
| 223 | |
| 224 | if (this->active) |
| 225 | this->animation->start(1); |
| 226 | |
| 227 | return true; |
| 228 | } |
| 229 | |
| 230 | void RundownHttpGetWidget::executeStop() |
| 231 | { |
nothing calls this directly
no test coverage detected