# danog\MadelineProto\EventHandler\Calls\AbstractGroupCall: What a [video chat/livestream »](https://core.telegram.org/api/group-calls#video-chats-livestreams)

> ({@see GroupCall}) and a [live story »](https://core.telegram.org/api/group-calls#live-stories)
({@see LiveStory}) have in common: both are group calls the server mixes (not end-to-end encrypted),
with the same joining, participants, playback, recording, in-call messages and settings.

See https://core.telegram.org/api/group-calls for more info.


[Back to index](../../../../index.html)

> Author: Daniil Gentili <daniil@daniil.it>  
  

What a [video chat/livestream »](https://core.telegram.org/api/group-calls#video-chats-livestreams)  

({@see GroupCall}) and a [live story »](https://core.telegram.org/api/group-calls#live-stories)
({@see LiveStory}) have in common: both are group calls the server mixes (not end-to-end encrypted),
with the same joining, participants, playback, recording, in-call messages and settings.

See https://core.telegram.org/api/group-calls for more info.


## Properties
* `$id`: `int` Group call ID.
* `$accessHash`: `int` Access hash of the group call.
* `$peerId`: `?int` Bot API ID of the peer the call belongs to (the group or channel of a video chat, the poster of a live story), if known.
* `$participantsCount`: `int` Number of participants.
* `$joinMuted`: `bool` Whether new participants join muted.
* `$canChangeJoinMuted`: `bool` Whether we may change whether new participants join muted (admins).
* `$joinDateAsc`: `bool` Whether participants are sorted by join date (ascending) rather than by activity.
* `$canStartVideo`: `bool` Whether we may start streaming video (the video limit is not reached yet).
* `$rtmpStream`: `bool` Whether the media is published by an external RTMP application rather than by a participant.
* `$listenersHidden`: `bool` Whether the listeners are hidden.
* `$creator`: `bool` Whether we created this call.
* `$messagesEnabled`: `bool` Whether in-call messages are enabled.
* `$canChangeMessagesEnabled`: `bool` Whether we may enable or disable in-call messages (admins).
* `$inviteLink`: `?string` The invite link of the call, if any.
* `$unmutedVideoCount`: `?int` How many participants are transmitting video.
* `$unmutedVideoLimit`: `int` How many participants may transmit video at once.
* `$streamDcId`: `?int` The DC to use when downloading media chunks in stream mode.
* `$discarded`: `bool` Whether the call has ended.
* `$duration`: `?int` Duration of the call in seconds, once it has ended.

## Method list:
* [`join(bool $muted = false): static`](#join)
* [`leave(): static`](#leave)
* [`discard(): static`](#discard)
* [`invite(string|int ...$users): static`](#invite)
* [`setTitle(string $title): static`](#setTitle)
* [`isJoined(): bool`](#isJoined)
* [`getCallState(): \danog\MadelineProto\EventHandler\Calls\GroupCallState`](#getCallState)
* [`getParticipants(): array<int, TParticipant>`](#getParticipants)
* [`getParticipant(string|int $participant): (TParticipant|null)`](#getParticipant)
* [`getVisualization(): ?array`](#getVisualization)
* [`setMuted(bool $muted = true): static`](#setMuted)
* [`isMuted(): bool`](#isMuted)
* [`sendMessage(string $message, (\danog\MadelineProto\ParseMode|null) $parseMode = NULL, (int|null) $paidStars = NULL, (string|int|null) $sendAs = NULL): static`](#sendMessage)
* [`sendReaction(string $emoji, (int|null) $customEmojiId = NULL): static`](#sendReaction)
* [`deleteMessages(list<int> $ids, bool $reportSpam = false): static`](#deleteMessages)
* [`deleteParticipantMessages(string|int $participant, bool $reportSpam = false): static`](#deleteParticipantMessages)
* [`setMessagesEnabled(bool $enabled): static`](#setMessagesEnabled)
* [`muteParticipant(string|int $participant, bool $muted = true): static`](#muteParticipant)
* [`setParticipantVolume(string|int $participant, int<1, 20000> $volume): static`](#setParticipantVolume)
* [`setVideoPaused(bool $paused): static`](#setVideoPaused)
* [`setJoinMuted(bool $joinMuted): static`](#setJoinMuted)
* [`resetInviteHash(): static`](#resetInviteHash)
* [`setOutput(\danog\MadelineProto\LocalFile|\Amp\ByteStream\WritableStream $file, string|int|null $participant = NULL, ?\danog\MadelineProto\RecordingFormat $format = NULL, (StreamMask|null) $streams = NULL): StreamMask`](#setOutput)
* [`setOutputFolder(\danog\MadelineProto\LocalDirectory $dir, string|int|null $participant = NULL, ?\danog\MadelineProto\RecordingFormat $format = NULL): static`](#setOutputFolder)
* [`play(\danog\MadelineProto\LocalFile|\danog\MadelineProto\RemoteUrl|\Amp\ByteStream\ReadableStream $file, \danog\MadelineProto\MediaDestination $dest = \danog\MadelineProto\MediaDestination::Camera): static`](#play)
* [`playBlocking(\danog\MadelineProto\LocalFile|\danog\MadelineProto\RemoteUrl|\Amp\ByteStream\ReadableStream $file, \danog\MadelineProto\MediaDestination $dest = \danog\MadelineProto\MediaDestination::Camera): static`](#playBlocking)
* [`then(\danog\MadelineProto\LocalFile|\danog\MadelineProto\RemoteUrl|\Amp\ByteStream\ReadableStream $file, \danog\MadelineProto\MediaDestination $dest = \danog\MadelineProto\MediaDestination::Camera): static`](#then)
* [`skip(\danog\MadelineProto\MediaDestination $dest = \danog\MadelineProto\MediaDestination::Camera): static`](#skip)
* [`stop(\danog\MadelineProto\MediaDestination $dest = \danog\MadelineProto\MediaDestination::Camera): static`](#stop)
* [`pause(\danog\MadelineProto\MediaDestination $dest = \danog\MadelineProto\MediaDestination::Camera): static`](#pause)
* [`isPaused(\danog\MadelineProto\MediaDestination $dest = \danog\MadelineProto\MediaDestination::Camera): bool`](#isPaused)
* [`resume(\danog\MadelineProto\MediaDestination $dest = \danog\MadelineProto\MediaDestination::Camera): static`](#resume)
* [`playOnHold(\danog\MadelineProto\MediaDestination $dest = \danog\MadelineProto\MediaDestination::Camera, \danog\MadelineProto\LocalFile|\danog\MadelineProto\RemoteUrl|\Amp\ByteStream\ReadableStream ...$files): static`](#playOnHold)
* [`getCurrent(\danog\MadelineProto\MediaDestination $dest = \danog\MadelineProto\MediaDestination::Camera): \danog\MadelineProto\RemoteUrl|\danog\MadelineProto\LocalFile|string|null`](#getCurrent)
* [`enablePresentation(): static`](#enablePresentation)
* [`disablePresentation(): static`](#disablePresentation)
* [`isSharingScreen(): bool`](#isSharingScreen)
* [`isStreamMode(): bool`](#isStreamMode)
* [`isRtmpMode(): bool`](#isRtmpMode)
* [`exportInvite(bool $canSelfUnmute = false): string`](#exportInvite)
* [`removeParticipant((string|int) ...$participants): static`](#removeParticipant)

## Methods:
### <a name="join"></a> `join(bool $muted = false): static`

Join the call.


Parameters:

* `$muted`: `bool` Whether to join muted.  



### <a name="leave"></a> `leave(): static`

Leave the group call, without ending it for the other participants.



### <a name="discard"></a> `discard(): static`

End the group call for all participants.



### <a name="invite"></a> `invite(string|int ...$users): static`

Invite users to the group call (or, for a live story, to watch it).


Parameters:

* `...$users`: `string|int`   



### <a name="setTitle"></a> `setTitle(string $title): static`

Change the title of the group call.


Parameters:

* `$title`: `string`   



### <a name="isJoined"></a> `isJoined(): bool`

Whether we are currently in the group call (joined and not left).



### <a name="getCallState"></a> `getCallState(): \danog\MadelineProto\EventHandler\Calls\GroupCallState`

Get the state of the group call.


#### See also: 
* [`\danog\MadelineProto\EventHandler\Calls\GroupCallState`: State of a group call we are interacting with.](../../../../danog/MadelineProto/EventHandler/Calls/GroupCallState.html)




### <a name="getParticipants"></a> `getParticipants(): array<int, TParticipant>`

Get all known participants, indexed by their bot API peer ID.


#### See also: 
* `TParticipant`




### <a name="getParticipant"></a> `getParticipant(string|int $participant): (TParticipant|null)`

A participant of the call by their id, username or peer, or null if they are not in it.


Parameters:

* `$participant`: `string|int`   


#### See also: 
* `TParticipant`




### <a name="getVisualization"></a> `getVisualization(): ?array`

Video chats and livestreams are not end-to-end encrypted, so there is no key to verify: always null.



### <a name="setMuted"></a> `setMuted(bool $muted = true): static`

Mute or unmute our own audio stream.


Parameters:

* `$muted`: `bool`   



### <a name="isMuted"></a> `isMuted(): bool`

Whether our own audio stream is muted.



### <a name="sendMessage"></a> `sendMessage(string $message, (\danog\MadelineProto\ParseMode|null) $parseMode = NULL, (int|null) $paidStars = NULL, (string|int|null) $sendAs = NULL): static`

Send an [in-call message »](https://core.telegram.org/api/group-calls#in-call-messages), shown as
an overlay by the participants' clients (there is no chat history), if messages are enabled.  


Parameters:

* `$message`: `string` The text; markup in `$parseMode` is converted to entities.  
* `$parseMode`: `(\danog\MadelineProto\ParseMode|null)` Whether to parse HTML or Markdown markup in the text.  
* `$paidStars`: `(int|null)` Live stories only: Telegram Stars to donate with the message (at least {@see self::$sendPaidMessagesStars}).  
* `$sendAs`: `(string|int|null)` Live stories only: the peer to send the message as.  


#### See also: 
* [`\danog\MadelineProto\ParseMode`: Indicates a parsing mode for text.](../../../../danog/MadelineProto/ParseMode.html)




### <a name="sendReaction"></a> `sendReaction(string $emoji, (int|null) $customEmojiId = NULL): static`

Send an [in-call reaction »](https://core.telegram.org/api/group-calls#in-call-reactions).


Parameters:

* `$emoji`: `string` The emoji.  
* `$customEmojiId`: `(int|null)` The document id of a custom emoji to send instead, `$emoji` being its fallback.  



### <a name="deleteMessages"></a> `deleteMessages(list<int> $ids, bool $reportSpam = false): static`

Delete in-call messages: our own, or anyone's if we are an admin.


Parameters:

* `$ids`: `list<int>` IDs of the messages to delete.  
* `$reportSpam`: `bool` Also report them as spam (admins only).  



### <a name="deleteParticipantMessages"></a> `deleteParticipantMessages(string|int $participant, bool $reportSpam = false): static`

Delete every in-call message of a participant (admins only).


Parameters:

* `$participant`: `string|int`   
* `$reportSpam`: `bool` Also report them as spam.  



### <a name="setMessagesEnabled"></a> `setMessagesEnabled(bool $enabled): static`

Enable or disable in-call messages (admins only).


Parameters:

* `$enabled`: `bool`   



### <a name="muteParticipant"></a> `muteParticipant(string|int $participant, bool $muted = true): static`

Mute or unmute a participant (admins only; a participant muted by an admin may not unmute
themselves), or, for a non-admin, mute a participant only for ourselves.  


Parameters:

* `$participant`: `string|int`   
* `$muted`: `bool`   



### <a name="setParticipantVolume"></a> `setParticipantVolume(string|int $participant, int<1, 20000> $volume): static`

Set our local playback volume of a participant.


Parameters:

* `$participant`: `string|int`   
* `$volume`: `int<1, 20000>` From 1 to 20000, where 10000 is 100%.  



### <a name="setVideoPaused"></a> `setVideoPaused(bool $paused): static`

Pause or resume our own video stream, telling the other participants to keep showing the last
frame rather than hiding it.  


Parameters:

* `$paused`: `bool`   



### <a name="setJoinMuted"></a> `setJoinMuted(bool $joinMuted): static`

Whether new participants join muted (admins only).


Parameters:

* `$joinMuted`: `bool`   



### <a name="resetInviteHash"></a> `resetInviteHash(): static`

Invalidate every invite link exported so far (admins only).



### <a name="setOutput"></a> `setOutput(\danog\MadelineProto\LocalFile|\Amp\ByteStream\WritableStream $file, string|int|null $participant = NULL, ?\danog\MadelineProto\RecordingFormat $format = NULL, (StreamMask|null) $streams = NULL): StreamMask`

Record one participant into a single file (or stream) with a fixed set of tracks, muxed into
Matroska in pure PHP.  
  
`$participant` (a user id, username or peer) is required — every participant is recorded to  
its own file, see {@see self::setOutputFolder()} to record everyone at once — except in  
[stream mode »](https://core.telegram.org/api/group-calls#stream-mode) ({@see self::isStreamMode()}),  
where there is a single mixed audio (and, for an RTMP livestream, video) stream rather than one per  
participant: pass no `$participant`, and any {@see RecordingFormat}. Our own media is never recorded.  
  
The file holds the streams chosen with `$streams` — a bitmask of {@see CallStream::AUDIO},  
{@see CallStream::VIDEO} and {@see CallStream::SCREEN}, every one of which must be available — or,  
when null, every stream the participant currently sends; the available streams are returned. The  
tracks are fixed for the whole file: a stream turned off stops being written and resumes when it  
comes back, and only a change of codec or the end of the call finishes the file (see  
{@see Call::setOutput()}); every such event is reported by a {@see CallStreams} update.  
  
Participants' frames are stored as-is, so the video tracks are whatever codec they send and the  
audio is OPUS; `$format` picks the {@see RecordingFormat::Mkv} (default) or {@see RecordingFormat::Webm}  
DocType, autodetected from a `.webm` extension.  


Parameters:

* `$file`: `\danog\MadelineProto\LocalFile|\Amp\ByteStream\WritableStream`   
* `$participant`: `string|int|null`   
* `$format`: `?\danog\MadelineProto\RecordingFormat`   
* `$streams`: `(StreamMask|null)` The streams to record, as a bitmask of {@see CallStream} flags, or null for every available one.  


Return value: The streams the participant currently sends, as a bitmask of {@see CallStream} flags.

#### See also: 
* [`\danog\MadelineProto\LocalFile`: Indicates a local file to upload.](../../../../danog/MadelineProto/LocalFile.html)
* `\Amp\ByteStream\WritableStream`
* [`\danog\MadelineProto\RecordingFormat`: Container format of a call recording, as passed to {@see Call::setOutput()} and {@see Call::setOutputFolder()}.](../../../../danog/MadelineProto/RecordingFormat.html)
* `StreamMask`




### <a name="setOutputFolder"></a> `setOutputFolder(\danog\MadelineProto\LocalDirectory $dir, string|int|null $participant = NULL, ?\danog\MadelineProto\RecordingFormat $format = NULL): static`

Record group call media into a directory, muxed into Matroska files in pure PHP.
  
Records every transmitting participant — or only the given `$participant` — as  
`<dir>/<peerId>.<n>_<streams>.mkv` files, one per combination of the audio, camera video and  
screen share they send, each on or off at any time (see {@see Call::setOutputFolder()};  
participants that start transmitting later are picked up too). Our own media is never recorded.  
In [stream mode »](https://core.telegram.org/api/group-calls#stream-mode) the mixed stream is  
recorded as `<dir>/stream.mkv` (or `.ogg` for {@see RecordingFormat::Opus}).  
  
`$format` picks the {@see RecordingFormat::Mkv} (default) or {@see RecordingFormat::Webm} DocType.  


Parameters:

* `$dir`: `\danog\MadelineProto\LocalDirectory`   
* `$participant`: `string|int|null`   
* `$format`: `?\danog\MadelineProto\RecordingFormat`   


#### See also: 
* [`\danog\MadelineProto\LocalDirectory`: Indicates a local directory to write output into.](../../../../danog/MadelineProto/LocalDirectory.html)
* [`\danog\MadelineProto\RecordingFormat`: Container format of a call recording, as passed to {@see Call::setOutput()} and {@see Call::setOutputFolder()}.](../../../../danog/MadelineProto/RecordingFormat.html)




### <a name="play"></a> `play(\danog\MadelineProto\LocalFile|\danog\MadelineProto\RemoteUrl|\Amp\ByteStream\ReadableStream $file, \danog\MadelineProto\MediaDestination $dest = \danog\MadelineProto\MediaDestination::Camera): static`

Play a file, transmitting its audio and, if it carries a transmittable one, its video.
  
A WebM/Matroska file with VP8, VP9, H.264 or H.265 video has its video transmitted too; any other  
file (or a raw audio stream) is played as audio only. Frames are demuxed in pure PHP and sent  
as-is where possible, so no transcoding (and thus no FFI extension) is required for  
pre-encoded WebM/OGG-OPUS input.  


Parameters:

* `$file`: `\danog\MadelineProto\LocalFile|\danog\MadelineProto\RemoteUrl|\Amp\ByteStream\ReadableStream`   
* `$dest`: `\danog\MadelineProto\MediaDestination`   


#### See also: 
* [`\danog\MadelineProto\LocalFile`: Indicates a local file to upload.](../../../../danog/MadelineProto/LocalFile.html)
* [`\danog\MadelineProto\RemoteUrl`: Indicates a remote URL to upload.](../../../../danog/MadelineProto/RemoteUrl.html)
* `\Amp\ByteStream\ReadableStream`
* [`\danog\MadelineProto\MediaDestination`: Which media stream of a call a playback or recording operation targets.](../../../../danog/MadelineProto/MediaDestination.html)




### <a name="playBlocking"></a> `playBlocking(\danog\MadelineProto\LocalFile|\danog\MadelineProto\RemoteUrl|\Amp\ByteStream\ReadableStream $file, \danog\MadelineProto\MediaDestination $dest = \danog\MadelineProto\MediaDestination::Camera): static`

Play a file, blocking until it has finished playing if a stream is provided.


Parameters:

* `$file`: `\danog\MadelineProto\LocalFile|\danog\MadelineProto\RemoteUrl|\Amp\ByteStream\ReadableStream`   
* `$dest`: `\danog\MadelineProto\MediaDestination`   


#### See also: 
* [`\danog\MadelineProto\LocalFile`: Indicates a local file to upload.](../../../../danog/MadelineProto/LocalFile.html)
* [`\danog\MadelineProto\RemoteUrl`: Indicates a remote URL to upload.](../../../../danog/MadelineProto/RemoteUrl.html)
* `\Amp\ByteStream\ReadableStream`
* [`\danog\MadelineProto\MediaDestination`: Which media stream of a call a playback or recording operation targets.](../../../../danog/MadelineProto/MediaDestination.html)




### <a name="then"></a> `then(\danog\MadelineProto\LocalFile|\danog\MadelineProto\RemoteUrl|\Amp\ByteStream\ReadableStream $file, \danog\MadelineProto\MediaDestination $dest = \danog\MadelineProto\MediaDestination::Camera): static`

Play file.


Parameters:

* `$file`: `\danog\MadelineProto\LocalFile|\danog\MadelineProto\RemoteUrl|\Amp\ByteStream\ReadableStream`   
* `$dest`: `\danog\MadelineProto\MediaDestination`   


#### See also: 
* [`\danog\MadelineProto\LocalFile`: Indicates a local file to upload.](../../../../danog/MadelineProto/LocalFile.html)
* [`\danog\MadelineProto\RemoteUrl`: Indicates a remote URL to upload.](../../../../danog/MadelineProto/RemoteUrl.html)
* `\Amp\ByteStream\ReadableStream`
* [`\danog\MadelineProto\MediaDestination`: Which media stream of a call a playback or recording operation targets.](../../../../danog/MadelineProto/MediaDestination.html)




### <a name="skip"></a> `skip(\danog\MadelineProto\MediaDestination $dest = \danog\MadelineProto\MediaDestination::Camera): static`

When called, skips to the next file in the playlist.


Parameters:

* `$dest`: `\danog\MadelineProto\MediaDestination`   


#### See also: 
* [`\danog\MadelineProto\MediaDestination`: Which media stream of a call a playback or recording operation targets.](../../../../danog/MadelineProto/MediaDestination.html)




### <a name="stop"></a> `stop(\danog\MadelineProto\MediaDestination $dest = \danog\MadelineProto\MediaDestination::Camera): static`

Stops playing all files, clears the main and the hold playlist.


Parameters:

* `$dest`: `\danog\MadelineProto\MediaDestination`   


#### See also: 
* [`\danog\MadelineProto\MediaDestination`: Which media stream of a call a playback or recording operation targets.](../../../../danog/MadelineProto/MediaDestination.html)




### <a name="pause"></a> `pause(\danog\MadelineProto\MediaDestination $dest = \danog\MadelineProto\MediaDestination::Camera): static`

Pauses the currently playing file.


Parameters:

* `$dest`: `\danog\MadelineProto\MediaDestination`   


#### See also: 
* [`\danog\MadelineProto\MediaDestination`: Which media stream of a call a playback or recording operation targets.](../../../../danog/MadelineProto/MediaDestination.html)




### <a name="isPaused"></a> `isPaused(\danog\MadelineProto\MediaDestination $dest = \danog\MadelineProto\MediaDestination::Camera): bool`

Whether the currently playing file is paused.


Parameters:

* `$dest`: `\danog\MadelineProto\MediaDestination`   


#### See also: 
* [`\danog\MadelineProto\MediaDestination`: Which media stream of a call a playback or recording operation targets.](../../../../danog/MadelineProto/MediaDestination.html)




### <a name="resume"></a> `resume(\danog\MadelineProto\MediaDestination $dest = \danog\MadelineProto\MediaDestination::Camera): static`

Resumes the currently playing file.


Parameters:

* `$dest`: `\danog\MadelineProto\MediaDestination`   


#### See also: 
* [`\danog\MadelineProto\MediaDestination`: Which media stream of a call a playback or recording operation targets.](../../../../danog/MadelineProto/MediaDestination.html)




### <a name="playOnHold"></a> `playOnHold(\danog\MadelineProto\MediaDestination $dest = \danog\MadelineProto\MediaDestination::Camera, \danog\MadelineProto\LocalFile|\danog\MadelineProto\RemoteUrl|\Amp\ByteStream\ReadableStream ...$files): static`

Files to play on hold.


Parameters:

* `$dest`: `\danog\MadelineProto\MediaDestination`   
* `...$files`: `\danog\MadelineProto\LocalFile|\danog\MadelineProto\RemoteUrl|\Amp\ByteStream\ReadableStream`   


#### See also: 
* [`\danog\MadelineProto\MediaDestination`: Which media stream of a call a playback or recording operation targets.](../../../../danog/MadelineProto/MediaDestination.html)
* [`\danog\MadelineProto\LocalFile`: Indicates a local file to upload.](../../../../danog/MadelineProto/LocalFile.html)
* [`\danog\MadelineProto\RemoteUrl`: Indicates a remote URL to upload.](../../../../danog/MadelineProto/RemoteUrl.html)
* `\Amp\ByteStream\ReadableStream`




### <a name="getCurrent"></a> `getCurrent(\danog\MadelineProto\MediaDestination $dest = \danog\MadelineProto\MediaDestination::Camera): \danog\MadelineProto\RemoteUrl|\danog\MadelineProto\LocalFile|string|null`

Get the file that is currently being played.
  
Will return a string with the object ID of the stream if we're currently playing a stream,  
otherwise returns the related LocalFile or RemoteUrl.  


Parameters:

* `$dest`: `\danog\MadelineProto\MediaDestination`   


#### See also: 
* [`\danog\MadelineProto\MediaDestination`: Which media stream of a call a playback or recording operation targets.](../../../../danog/MadelineProto/MediaDestination.html)
* [`\danog\MadelineProto\RemoteUrl`: Indicates a remote URL to upload.](../../../../danog/MadelineProto/RemoteUrl.html)
* [`\danog\MadelineProto\LocalFile`: Indicates a local file to upload.](../../../../danog/MadelineProto/LocalFile.html)




### <a name="enablePresentation"></a> `enablePresentation(): static`

Start sharing a screen: a second connection (phone.joinGroupCallPresentation) whose video is
transmitted on the {@see MediaDestination::Presentation} stream. Idempotent; requires the call to  
be joined.  



### <a name="disablePresentation"></a> `disablePresentation(): static`

Stop sharing the screen.



### <a name="isSharingScreen"></a> `isSharingScreen(): bool`

Whether a screen-share is currently being transmitted.



### <a name="isStreamMode"></a> `isStreamMode(): bool`

Whether the server switched us to [stream mode »](https://core.telegram.org/api/group-calls#stream-mode)
(a large livestream, or an RTMP one): the call's media is received by downloading chunks, and  
there is a single mixed stream to record with {@see self::setOutput()} (pass no participant).  



### <a name="isRtmpMode"></a> `isRtmpMode(): bool`

Whether the call's media is published by a single external RTMP publisher.



### <a name="exportInvite"></a> `exportInvite(bool $canSelfUnmute = false): string`

Export an invite link to the call.


Parameters:

* `$canSelfUnmute`: `bool` Whether users joining with this link may speak without asking; ignored where the call has no such distinction.  



### <a name="removeParticipant"></a> `removeParticipant((string|int) ...$participants): static`

Remove participants from the call.


Parameters:

* `...$participants`: `(string|int)` The participants to remove (user ids, usernames or peers).  



---
Generated by [danog/phpdoc](https://phpdoc.daniil.it)
