Unverified Commit 3256e88c authored by Ghazi Triki's avatar Ghazi Triki Committed by GitHub
Browse files

Merge pull request #125 from tdjac0bs/php-join-custom-parameters

Add support to custom parameters on join
parents 48aa3534 e6bf2059
......@@ -78,6 +78,11 @@ class JoinMeetingParameters extends UserDataParameters
*/
private $joinViaHtml5;
/**
* @var array
*/
private $customParameters;
/**
* JoinMeetingParametersTest constructor.
*
......@@ -90,6 +95,7 @@ class JoinMeetingParameters extends UserDataParameters
$this->meetingId = $meetingId;
$this->username = $username;
$this->password = $password;
$this->customParameters = array();
}
/**
......@@ -307,6 +313,18 @@ class JoinMeetingParameters extends UserDataParameters
return $this;
}
/**
* @param string $paramName
* @param string $paramValue
* @return JoinMeetingParameters
*/
public function setCustomParameter($paramName, $paramValue)
{
$this->customParameters[$paramName] = $paramValue;
return $this;
}
/**
* @return string
*/
......@@ -325,6 +343,11 @@ class JoinMeetingParameters extends UserDataParameters
'joinViaHtml5' => $this->joinViaHtml5 ? 'true' : 'false',
'clientURL' => $this->clientURL
];
foreach( $this->customParameters as $key => $value ) {
$queries[$key] = $value;
}
$this->buildUserData($queries);
return $this->buildHTTPQuery($queries);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment