IParticipantProperties
Reference the IParticipantProperties interface for participant properties.
Read time 4 minutesLast updated 2 days ago
Common properties that represent a player in a channel.
#include <IParticipantProperties.h>Public Types
Name | |
|---|---|
| typedef FDelegateBeginSetLocalVolumeAdjustmentCompleted::FDelegate | FOnBeginSetLocalVolumeAdjustmentCompletedDelegate The delegate called when |
| typedef FDelegateBeginSetLocalMuteCompleted::FDelegate | FOnBeginSetLocalMuteCompletedDelegate The delegate called when |
| typedef FDelegateBeginSetIsMutedForAllCompleted::FDelegate | FOnBeginSetIsMutedForAllCompletedDelegate The delegate that is called when |
Public Functions
Name | |
|---|---|
| virtual bool | IsSelf() const =0 True if this participant corresponds to the currently connected user. |
| virtual bool | InAudio() const =0 If true, the user is in audio. |
| virtual bool | InText() const =0 If true, the user is in text. |
| virtual bool | SpeechDetected() const =0 If true, the user is speaking. |
| virtual double | AudioEnergy() const =0 The audio energy for this user. You can use this to build a VU meter for this user. |
| virtual int | LocalVolumeAdjustment() const =0 The gain for this user for only the currently signed in user. The valid range is between -50 and 50. Positive values increase volume, and negative values decrease volume. Zero (the default value) leaves volume unchanged. |
| virtual VivoxCoreError | SetLocalVolumeAdjustment(int value) =0 Set the gain for this user for only the currently signed in user. The valid range is between -50 and 50. Positive values increase volume, and negative values decrease volume. Zero (the default value) leaves volume unchanged. |
| virtual VivoxCoreError | BeginSetLocalVolumeAdjustment(int value, FOnBeginSetLocalVolumeAdjustmentCompletedDelegate theDelegate =FOnBeginSetLocalVolumeAdjustmentCompletedDelegate()) =0 Set the gain for this user for only the currently signed in user. The valid range is between -50 and 50. Positive values increase volume, and negative values decrease volume. Zero (the default value) leaves volume unchanged. |
| virtual bool | LocalMute() const =0 Returns the muted status of the participant for only the currently connected user. |
| virtual void | SetLocalMute(bool value) =0 Use this to silence or un-silence this participant for only the currently connected user. |
| virtual VivoxCoreError | BeginSetLocalMute(bool value, FOnBeginSetLocalMuteCompletedDelegate theDelegate =FOnBeginSetLocalMuteCompletedDelegate()) =0 Use this to silence or un-silence this participant for only the currently connected user. |
| virtual bool | IsTyping() const =0 Indicates if the user is currently typing. |
| virtual bool | IsMutedForAll() const =0 Indicates if the user is muted for all users. |
| virtual bool | UnavailableRenderDevice() const =0 Indicates if the user has an available render device. |
| virtual bool | UnavailableCaptureDevice() const =0 Indicates if the user has an available capture device. |
| virtual VivoxCoreError | BeginSetIsMutedForAll(bool setMuted, const FString & accessToken, FOnBeginSetIsMutedForAllCompletedDelegate theDelegate =FOnBeginSetIsMutedForAllCompletedDelegate()) const =0 Silence or un-silence this participant for everyone in the channel. |
| virtual FString | GetMuteForAllToken(const FString & tokenSigningKey, FTimespan tokenExpirationDuration) const =0 Get a token that can be used to silence or un-silence a participant for everyone in a channel. |
Public Types Documentation
typedef FOnBeginSetLocalVolumeAdjustmentCompletedDelegate
The delegate called whentypedef FDelegateBeginSetLocalVolumeAdjustmentCompleted::FDelegate IParticipantProperties::FOnBeginSetLocalVolumeAdjustmentCompletedDelegate;
BeginSetLocalVolumeAdjustment()typedef FOnBeginSetLocalMuteCompletedDelegate
The delegate called whentypedef FDelegateBeginSetLocalMuteCompleted::FDelegate IParticipantProperties::FOnBeginSetLocalMuteCompletedDelegate;
BeginSetLocalMute()typedef FOnBeginSetIsMutedForAllCompletedDelegate
The delegate that is called whentypedef FDelegateBeginSetIsMutedForAllCompleted::FDelegate IParticipantProperties::FOnBeginSetIsMutedForAllCompletedDelegate;
BeginSetIsMutedForAll()Public Functions Documentation
function IsSelf
True if this participant corresponds to the currently connected user.virtual bool IsSelf() const =0
function InAudio
If true, the user is in audio.virtual bool InAudio() const =0
function InText
If true, the user is in text.virtual bool InText() const =0
function SpeechDetected
If true, the user is speaking.virtual bool SpeechDetected() const =0
function AudioEnergy
The audio energy for this user. You can use this to build a VU meter for this user.virtual double AudioEnergy() const =0
function LocalVolumeAdjustment
The gain for this user for only the currently signed in user. The valid range is between -50 and 50. Positive values increase volume, and negative values decrease volume. Zero (the default value) leaves volume unchanged.virtual int LocalVolumeAdjustment() const =0
function SetLocalVolumeAdjustment
Set the gain for this user for only the currently signed in user. The valid range is between -50 and 50. Positive values increase volume, and negative values decrease volume. Zero (the default value) leaves volume unchanged. Deprecated: Use IParticipantProperties::BeginSetLocalVolumeAdjustment() instead; will be removed in a future release.virtual VivoxCoreError SetLocalVolumeAdjustment( int value) =0
function BeginSetLocalVolumeAdjustment
Set the gain for this user for only the currently signed in user. The valid range is between -50 and 50. Positive values increase volume, and negative values decrease volume. Zero (the default value) leaves volume unchanged. Parameters:virtual VivoxCoreError BeginSetLocalVolumeAdjustment( int value, FOnBeginSetLocalVolumeAdjustmentCompletedDelegate theDelegate =FOnBeginSetLocalVolumeAdjustmentCompletedDelegate()) =0
- value The audio gain value to set.
- theDelegate A delegate to call when this operation completes.
function LocalMute
Returns the muted status of the participant for only the currently connected user.virtual bool LocalMute() const =0
function SetLocalMute
Use this to silence or un-silence this participant for only the currently connected user. Deprecated: Use IParticipantProperties::BeginSetLocalMute() instead; will be removed in a future release.virtual void SetLocalMute( bool value) =0
function BeginSetLocalMute
Use this to silence or un-silence this participant for only the currently connected user. Parameters:virtual VivoxCoreError BeginSetLocalMute( bool value, FOnBeginSetLocalMuteCompletedDelegate theDelegate =FOnBeginSetLocalMuteCompletedDelegate()) =0
- value True to mute, false to unmute.
- theDelegate A delegate to call when this operation completes.
function IsTyping
Indicates if the user is currently typing.virtual bool IsTyping() const =0
function IsMutedForAll
Indicates if the user is muted for all users.virtual bool IsMutedForAll() const =0
function UnavailableRenderDevice
Indicates if the user has an available render device.virtual bool UnavailableRenderDevice() const =0
function UnavailableCaptureDevice
Indicates if the user has an available capture device.virtual bool UnavailableCaptureDevice() const =0
function BeginSetIsMutedForAll
Silence or un-silence this participant for everyone in the channel. Parameters:virtual VivoxCoreError BeginSetIsMutedForAll( bool setMuted, const FString & accessToken, FOnBeginSetIsMutedForAllCompletedDelegate theDelegate =FOnBeginSetIsMutedForAllCompletedDelegate()) const =0
- setMuted True to mute, false to unmute.
- accessToken The access token that grants the user permission to mute this participant in the channel.
- theDelegate A delegate to call when this operation completes.
function GetMuteForAllToken
Get a token that can be used to silence or un-silence a participant for everyone in a channel. Parameters:virtual FString GetMuteForAllToken( const FString & tokenSigningKey, FTimespan tokenExpirationDuration) const =0
- tokenSigningKey The key that corresponds to the issuer for this account that is used to sign the token.
- tokenExpirationDuration The length of time the token is valid for.