Skip to content
This repository has been archived by the owner on Jan 21, 2020. It is now read-only.

Commit

Permalink
Merge pull request #2041 from fvovan/issue-2041
Browse files Browse the repository at this point in the history
make Janus'  iceServerList optional
  • Loading branch information
fvovan committed Jan 6, 2016
2 parents 616125a + f7d1d25 commit f4200e7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion library/CM/Janus/Factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,13 @@ class CM_Janus_Factory {
public function createService(array $servers) {
$configuration = new CM_Janus_Configuration();
foreach ($servers as $serverId => $serverConfig) {
$iceServerList = isset($serverConfig['iceServerList']) ? $serverConfig['iceServerList'] : null;
$configuration->addServer(new CM_Janus_Server(
$serverId,
$serverConfig['key'],
$serverConfig['httpAddress'],
$serverConfig['webSocketAddress'],
$serverConfig['iceServerList']
$iceServerList
));
}

Expand Down

0 comments on commit f4200e7

Please sign in to comment.