播放完毕后,我想继续该过程。
$this->client->onStasisStart(function (StasisStart $event) {
$event->getChannel()->answer();
$event->getChannel()->playMediaWithId('sound:demo', NULL, NULL, NULL, 'play1');
$playback = $this->client->playbacks()->getPlayback('play1');
$playback->onPlaybackFinished(function (PlaybackFinished $event){
$this->log("PLAYBACK DONE123");
});
});
如果我运行脚本但通过cli运行时得到PLAYBACK DONE123
,就没有错误。
谢谢。