Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
p-delorme committed Nov 7, 2023
2 parents 81b00b4 + 56031fb commit 8f812b6
Showing 1 changed file with 52 additions and 3 deletions.
55 changes: 52 additions & 3 deletions src/VideoGrant.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,21 @@ class VideoGrant {
*/
protected $canPublishData = NULL;

/**
* When set, only listed source can be published.
* (camera, microphone, screen_share, screen_share_audio)
*
* @var string[]|null
*/
protected $canPublishSources = NULL;

/**
* Allow participant to update its own metadata
*
* @var bool|null
*/
protected $canUpdateOwnMetadata = NULL;

/**
* Participant isn't visible to others.
*
Expand Down Expand Up @@ -141,7 +156,7 @@ public function setRoomJoin(bool $roomJoin = TRUE): self {
/**
* @return bool | null
*/
public function isRoomList(): bool| null {
public function isRoomList(): bool | null {
return $this->roomList;
}

Expand All @@ -158,7 +173,7 @@ public function setRoomList(bool $roomList = TRUE): self {
/**
* @return bool | null
*/
public function isRoomRecord(): bool| null {
public function isRoomRecord(): bool | null {
return $this->roomRecord;
}

Expand All @@ -175,7 +190,7 @@ public function setRoomRecord(bool $roomRecord = TRUE): self {
/**
* @return bool | null
*/
public function isRoomAdmin(): bool | null{
public function isRoomAdmin(): bool | null {
return $this->roomAdmin;
}

Expand Down Expand Up @@ -274,6 +289,40 @@ public function setCanPublishData(bool $canPublishData = TRUE): self {
return $this;
}

/**
* @param string[] $canPublishSources
*
* @return $this
*/
public function setCanPublishSources(array $canPublishSources = []): self {
$this->canPublishSources = $canPublishSources;
return $this;
}

/**
* @return string[]|null
*/
public function getCanPublishSources(): array | null {
return $this->canPublishSources;
}

/**
* @return bool | null
*/
public function isCanUpdateOwnMetadata(): bool | null {
return $this->canUpdateOwnMetadata;
}

/**
* @param bool $canUpdateOwnMetadata
*
* @return $this
*/
public function setCanUpdateOwnMetadata(bool $canUpdateOwnMetadata = TRUE): self {
$this->canUpdateOwnMetadata = $canUpdateOwnMetadata;
return $this;
}

/**
* @return bool | null
*/
Expand Down

0 comments on commit 8f812b6

Please sign in to comment.