This message was deleted.
# cloud
s
This message was deleted.
👀 1
p
cc @freezing-lifeguard-43174
r
We figured it out. It seems the
isSpeaking
is only changed true when the app is in release mode.
w
@freezing-lifeguard-43174 @polite-kilobyte-67570 can you confirm that release mode is expected behavior. or should we have the functionality during development?
d
It should not impact it whether it's in release mode or not
can you share the code you are using to determine that it is set to false?
w
Yes, cc @refined-barista-79203
r
Copy code
class _LiveAudioAvatar extends ConsumerStatefulWidget {
  final Participant participant;
  const _LiveAudioAvatar({required this.participant});

  @override
  ConsumerState<ConsumerStatefulWidget> createState() => __LiveAudioAvatarState();
}

class __LiveAudioAvatarState extends SafeConsumerState<_LiveAudioAvatar> {
  Participant get _participant => widget.participant;
  late final _listener = widget.participant.createListener();

  @override
  void initState() {
    super.initState();
    _listener.on<ParticipantEvent>((e) {
      log('from widget-${e.runtimeType}');
      setState(() {});
    });
  }

  @override
  void dispose() {
    _listener.dispose();
    super.dispose();
  }

  @override
  Widget build(BuildContext context) {
    final theme = SpillColor.of(context);
    final isSpeaking = _participant.isSpeaking;
    return Container(
      width: 48,
      height: 48,
      decoration: BoxDecoration(
        shape: BoxShape.circle,
        border: isSpeaking
            ? Border.all(
                width: 2,
                color: theme.border.primary,
              )
            : null,
      ),
      margin: const EdgeInsets.symmetric(vertical: 4.0),
      child: Stack(
        children: [
          if (isSpeaking) const Center(child: SoundWaveformWidget()),
        ],
      ),
    );
  }
}
We are receiving other
ParticipantEvent
and
RoomEvent
but not the
ActiveSpeakersChangedEvent
or
SpeakingChangedEvent
and are debugging on an actual iOS device.