CrowdAudioComponent advanced configuration
Last updated
Was this helpful?
Last updated
Was this helpful?
This page includes some extra functionality present in the crowd audio component, which could be useful for users exploring deeper into crowd audio:
The crowd audio component has a PollConnectionHealth
function, that checks whether there have been any dropped audio packets in the time since the last time PollConnectionHealth
was called. It calls OnConnectionHealthResult
with the result of the poll. This can be used to track whether there are any issues with audio, e.g. notifying users if they have a spotty connection.
SetVoiceInputEnabled
is the function used to turn voice chat on or off. We call this directly in our example voice chat functionality. The function is overridable, so if you want to inject checks that reject calls to this function, that can be done.
BPMC_CrowdAudio
for tracking connection health. It has been removed from our current example content since it is not currently being used/hooked up to UI, but could be added to a downstream project if desired.BPMC_M2Example_CrowdAudioComponent
overrides SetVoiceInputEnabled
, blocking requests to enable voice if CanUseVoice
is false. This function is blank by default, but can be extended if desired