Skip to content

Commit e9a5774

Browse files
committed
Added comments for enableVisualizer.
1 parent c1a6b57 commit e9a5774

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

example/lib/pages/prejoin.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,7 @@ class _PreJoinPageState extends State<PreJoinPage> {
212212
screenShareEncoding: screenEncoding,
213213
),
214214
e2eeOptions: e2eeOptions,
215+
enableVisualizer: true,
215216
),
216217
);
217218
// Create a Listener before connecting

lib/src/options.dart

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,12 @@ class RoomOptions {
115115
/// Options for end-to-end encryption.
116116
final E2EEOptions? e2eeOptions;
117117

118-
/// Enable visualizer for audio tracks. Defaults to true.
118+
/// audio visualizer is disabled by default
119+
/// When enabled, the native layer will register an FFI audio analyzer
120+
/// and will emit AudioVisualizerEvent events from AudioTrack.
121+
/// You can use SoundWaveformWidget (example/lib/widgets/sound_waveform.dart)
122+
/// to display the audio wave. Or write a custom widget to visualize the audio
123+
/// wave.
119124
final bool enableVisualizer;
120125

121126
const RoomOptions({
@@ -129,7 +134,7 @@ class RoomOptions {
129134
this.dynacast = false,
130135
this.stopLocalTrackOnUnpublish = true,
131136
this.e2eeOptions,
132-
this.enableVisualizer = true,
137+
this.enableVisualizer = false,
133138
});
134139

135140
RoomOptions copyWith({

0 commit comments

Comments
 (0)