/** * Stop all the playbacks */ public function stop() { foreach (array_reverse($this->playbacks) as $playback) { try { $this->phparia->playbacks()->stopPlayback($playback); } catch (\Exception $ignore) { } } }
/** * Stop all the playbacks */ public function stop() { foreach (array_reverse($this->playbacks) as $playback) { try { $this->phparia->playbacks()->stopPlayback($playback->getId()); } catch (\Exception $ignore) { // Don't throw exception if the playback does not exist } } }