MCPcopy Create free account
hub / github.com/CasparCG/client / executeCommand

Method executeCommand

src/Widgets/Rundown/RundownHttpGetWidget.cpp:199–228  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

197}
198
199bool 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
230void RundownHttpGetWidget::executeStop()
231{

Callers

nothing calls this directly

Calls 4

schedulePlayAndStopMethod · 0.80
getTriggerOnNextMethod · 0.45
getDelayMethod · 0.45
startMethod · 0.45

Tested by

no test coverage detected