Photon Voice  v2.8
English | 日本語 | 한국
Public Attributes | Protected Member Functions | Properties | List of all members
Speaker Class Reference

Component representing remote audio stream in local scene. More...

Inherits VoiceComponent.

Public Attributes

int PlayDelayMs = 200
 

Protected Member Functions

override void Awake ()
 

Properties

bool IsPlaying [get]
 Is the speaker playing right now. More...
 
int Lag [get]
 Smoothed difference between (jittering) stream and (clock-driven) audioOutput. More...
 
Action< SpeakerOnRemoteVoiceRemoveAction [get, set]
 Register a method to be called when remote voice removed. More...
 
Realtime.Player Actor [get, set]
 Per room, the connected users/players are represented with a Realtime.Player, also known as Actor. More...
 
bool IsLinked [get]
 Whether or not this Speaker has been linked to a remote voice stream. More...
 
- Properties inherited from VoiceComponent
VoiceLogger Logger [get, protected set]
 
DebugLevel LogLevel [get, set]
 
- Properties inherited from ILoggable
DebugLevel LogLevel [get, set]
 
VoiceLogger Logger [get]
 

Additional Inherited Members

- Protected Attributes inherited from VoiceComponent
DebugLevel logLevel = DebugLevel.ERROR
 

Detailed Description

Component representing remote audio stream in local scene.

Property Documentation

Realtime.Player Actor
getset

Per room, the connected users/players are represented with a Realtime.Player, also known as Actor.

Photon Voice calls this Actor, to avoid a name-clash with the Player class in Voice.

bool IsLinked
get

Whether or not this Speaker has been linked to a remote voice stream.

bool IsPlaying
get

Is the speaker playing right now.

int Lag
get

Smoothed difference between (jittering) stream and (clock-driven) audioOutput.

Action<Speaker> OnRemoteVoiceRemoveAction
getset

Register a method to be called when remote voice removed.