VivoxSession
A class in Root.Township, Alta.Voice.
One joined Vivox voice or text channel. Connects with a token from the API and pairs each participant with the matching in-game player. Client side.
- Listed in Networking and servers
Constructors
| Member | What it is |
|---|---|
VivoxSession(VivoxChannel channel, ILoginSession login) | Creates a VivoxSession from channel and login. |
Fields
2 private and internal fields
Properties
| Member | What it is |
|---|---|
VivoxChannel Channel { get; } | The Vivox channel this session is for. |
bool IsConnected { get; private set; } | True once the channel has been joined. |
VivoxText VivoxText { get; } | Text chat for the channel, or null if text is off. |
VivoxVoice VivoxVoice { get; } | Voice for the channel, or null if voice is off. |
Events
| Member | What it is |
|---|---|
event Action<VivoxSession> AudioConnected | Raised when the channel's audio connects. |
event Action<VivoxSession> ConnectionFailed | Raised when connecting fails after a token was got. |
event Action<IParticipant> PlayerPaired | Raised when a participant is matched to an in-game player and set as their Voice. |
event Action<VivoxSession> TextConnected | Raised when the channel's text chat connects. |
Methods
5 private and internal methods
Used in
Members of other types that take, return or hold a VivoxSession: