Menu

## ConferenceService
in package

ConferenceService.php : 22

Class ConferenceService

Handles video conference operations using Twilio, including room creation, access token generation, recording, and media storage.

### Table of Contents

#### Properties

$key : string
  Twilio API Key.
$secret : string
  Twilio API Secret.
$sid : string
  Twilio Account SID.
$token : string
  Twilio Auth Token.

#### Methods

__construct() : mixed
  ConferenceService constructor.
closeConnection() : array<string|int, mixed>
  Close a conference and create a video composition.
saveVideo() : string|null
  Save the recorded video file locally.
showDetails() : array<string|int, mixed>
  Generate an access token for a video room.
showDuration() : array<string|int, mixed>
  Fetch participant duration details for a room.
storeData() : array<string|int, mixed>
  Create or fetch a Twilio video room.

### Properties

#### $key

ConferenceService.php : 43

Twilio API Key.

`protected string $key`

#### $secret

ConferenceService.php : 50

Twilio API Secret.

`protected string $secret`

#### $sid

ConferenceService.php : 29

Twilio Account SID.

`protected string $sid`

#### $token

ConferenceService.php : 36

Twilio Auth Token.

`protected string $token`

### Methods

#### __construct()

ConferenceService.php : 57

ConferenceService constructor.

`public __construct() : mixed`

Initializes Twilio credentials from configuration.

#### closeConnection()

ConferenceService.php : 122

Close a conference and create a video composition.

`public closeConnection(mixed $conference, int|string $id) : array<string|int, mixed>`

##### Parameters

$conference : mixed
$id : int|string

##### Return values

array<string|int, mixed>

#### saveVideo()

ConferenceService.php : 156

Save the recorded video file locally.

`public saveVideo(string $school_slug[, string $cid = '' ]) : string|null`

##### Parameters

$school_slug : string
$cid : string = ''

##### Return values

string|null

#### showDetails()

ConferenceService.php : 103

Generate an access token for a video room.

`public showDetails([string $roomName = '' ][, string $identity = '' ]) : array<string|int, mixed>`

##### Parameters

$roomName : string = ''
$identity : string = ''

##### Return values

array<string|int, mixed>

#### showDuration()

ConferenceService.php : 178

Fetch participant duration details for a room.

`public showDuration([string $roomName = '' ]) : array<string|int, mixed>`

##### Parameters

$roomName : string = ''

##### Return values

array<string|int, mixed>

#### storeData()

ConferenceService.php : 72

Create or fetch a Twilio video room.

`public storeData(Request|array<string|int, mixed> $request, string $slug) : array<string|int, mixed>`

##### Parameters

$request : Request|array<string|int, mixed>
$slug : string

##### Return values

array<string|int, mixed>

## Search results