/** * @return CM_Janus_Stream[] * @throws CM_Exception_Invalid */ protected function _fetchStatus() { $status = []; foreach ($this->_serverList->getAll() as $server) { foreach ($this->_httpApiClient->fetchStatus($server) as $streamInfo) { $status[] = new CM_Janus_Stream($streamInfo['id'], $streamInfo['channelName'], $server); } } return $status; }