Inherits VoiceFollowClient, and INetworkRunnerCallbacks.
Public Attributes | |
bool | UseFusionAppSettings = true |
Whether or not to use the Voice AppId and all the other AppSettings from Fusion's RealtimeAppSettings ScriptableObject singleton in the Voice client/app. More... | |
bool | UseFusionAuthValues = true |
Whether or not to use the same AuthenticationValues used in Fusion client/app in Voice client/app as well. This means that the same UserID will be used in both clients. If custom authentication is used and setup in Fusion AppId from dashboard, the same configuration should be done for the Voice AppId. More... | |
![]() | |
bool | AutoConnectAndJoin = true |
Auto connect voice client and join a voice room when Leader client is joined to a Leader room More... | |
![]() | |
virtual bool | AlwaysUsePrimaryRecorder => false |
AppSettings | Settings |
Settings to be used by this Voice Client More... | |
Voice.ILogger | Logger => voiceComponentImpl.Logger |
VoiceLogger | VoiceLogger => voiceComponentImpl.VoiceLogger |
bool | UsePrimaryRecorder => this.usePrimaryRecorder |
Use VoiceConnection.PrimaryRecorder directly. More... | |
Protected Member Functions | |
override void | Start () |
override void | Awake () |
override void | OnDestroy () |
override Speaker | InstantiateSpeakerForRemoteVoice (int playerId, byte voiceId, object userData) |
override string | GetVoiceRoomName () |
override bool | ConnectVoice () |
![]() | |
override void | OnDestroy () |
override void | OnOperationResponseReceived (OperationResponse operationResponse) |
void | LeaderStateChanged (ClientState toState) |
override void | OnVoiceStateChanged (ClientState fromState, ClientState toState) |
virtual bool | JoinVoiceRoom (string voiceRoomName) |
![]() | |
override void | Awake () |
virtual void | Update () |
virtual void | FixedUpdate () |
void | CalcStatistics () |
Protected Attributes | |
override bool | LeaderInRoom => this.networkRunner.SessionInfo.IsValid |
override bool | LeaderOfflineMode => networkRunner.GameMode == GameMode.Single |
Additional Inherited Members | |
![]() | |
bool | ConnectAndJoinRoom () |
Connect voice client to Photon servers and join a Voice room More... | |
void | Disconnect () |
Disconnect voice client from all Photon servers More... | |
![]() | |
virtual bool | ConnectUsingSettings (AppSettings overwriteSettings=null) |
Connect to Photon server using Settings More... | |
bool | AddSpeaker (Speaker speaker, object userData) |
Tries to link local Speaker with remote voice stream using UserData. Useful if Speaker created after stream is started. More... | |
Speaker | InstantiateSpeakerPrefab (GameObject parent, bool destroyOnRemove) |
Instantiates SpeakerPrefab, optionally attaches it to the provided parent. More... | |
bool | AddRecorder (Recorder rec) |
void | RemoveRecorder (Recorder rec) |
![]() | |
const int | ChannelAudio = 1 |
Recommended Photon Transport channel for audio. Chosen not to interfere with video and default channel. More... | |
const int | ChannelVideo = 2 |
Recommended Photon Transport channel for video. Chosen not to interfere with audio and default channel. More... | |
![]() | |
abstract bool | LeaderInRoom [get] |
abstract bool | LeaderOfflineMode [get] |
![]() | |
new LoadBalancingTransport | Client [get] |
VoiceClient | VoiceClient [get] |
Returns underlying Photon Voice client. More... | |
ClientState | ClientState [get] |
Returns Photon Voice client state. More... | |
float | FramesReceivedPerSecond [get] |
Number of frames received per second. More... | |
float | FramesLostPerSecond [get] |
Number of frames lost per second. More... | |
float | FramesLostPercent [get] |
Percentage of lost frames. More... | |
GameObject | SpeakerPrefab [get, set] |
Prefab that contains Speaker component to be instantiated when receiving a new remote audio source info More... | |
Recorder | PrimaryRecorder [get, set] |
Primary Recorder to be used by VoiceConnection implementations directly or via integration objects. More... | |
string | BestRegionSummaryInPreferences [get, set] |
Used to store and access the "Best Region Summary" in the Player Preferences. More... | |
![]() | |
Action< Speaker > | SpeakerLinked |
Fires when a speaker has been linked to a remote audio stream More... | |
Action< RemoteVoiceLink > | RemoteVoiceAdded |
Fires when a remote voice stream is added More... | |
bool UseFusionAppSettings = true |
bool UseFusionAuthValues = true |
Whether or not to use the same AuthenticationValues used in Fusion client/app in Voice client/app as well. This means that the same UserID will be used in both clients. If custom authentication is used and setup in Fusion AppId from dashboard, the same configuration should be done for the Voice AppId.