StreamCallContainer(
// ...
callContentWidgetBuilder: (
BuildContext context,
Call call,
) {
return StreamCallContent(
call: call,
callParticipantsWidgetBuilder: (
BuildContext context,
Call call,
) {
return StreamCallParticipants(
call: call,
callParticipantBuilder: (
BuildContext context,
Call call,
CallParticipantState participantState,
) {
return StreamCallParticipant(
call: call,
participant: participantState,
audioLevelIndicatorColor: Colors.teal,
);
},
);
},
);
},
),
Audio Volume Indicator
The audio indicator provides visual feedback when a user connected to the call is speaking.
You can observe several things about audio in the CallParticipantState
class such as:
- Check if the current user is the dominant speaker:
participantState.isDominantSpeaker
- Check if the current user is speaking:
participantState.isSpeaking
- Check the audio level of the user:
participantState.audioLevel
Customising the audio volume indicator
You can change the color of the audio indicator using the audioLevelIndicatorColor
parameter of the StreamCallParticipant
widget:
- I'm working with the Stream Video Flutter SDK and would like to ask questions about this documentation page: https://getstream.io/video/docs/flutter/ui-cookbook/audio-volume-indicator.md
- View as markdown
- Open in ChatGPT
- Open in Claude
On this page: