Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
- win fix: hang on app exit #413
- win fix: prevent Windows message pump goes irresponsive with plugins like `desktop_drop` and maybe others #401
- fix: only unpause when buffer covers playback position #393. Thanks to @nukes
- wasm fix: runtimeType error when voice ended #414

#### 3.5.0 (1 Mar 2026)
- Harden loader temp directory logic #404. Thanks to @filiph
Expand Down
11 changes: 7 additions & 4 deletions lib/src/bindings/bindings_player_web.dart
Original file line number Diff line number Diff line change
Expand Up @@ -73,16 +73,19 @@ class FlutterSoLoudWeb extends FlutterSoLoud {
final decodedMap = jsonDecode(event) as Map;
if (decodedMap['message'] == 'voiceEndedCallback') {
_log.finest(
() => 'VOICE ENDED EVENT handle: ${decodedMap['value']}\n',
() => 'VOICE ENDED EVENT handle: '
'${(decodedMap['value'] as num).toInt()}\n',
);
voiceEndedEventController.add(decodedMap['value'] as int);
voiceEndedEventController
.add((decodedMap['value'] as num).toInt());
}
case Map():
if (event['message'] == 'voiceEndedCallback') {
_log.finest(
() => 'VOICE ENDED EVENT handle: ${event['value']}\n',
() => 'VOICE ENDED EVENT handle: '
'${(event['value'] as num).toInt()}\n',
);
voiceEndedEventController.add(event['value'] as int);
voiceEndedEventController.add((event['value'] as num).toInt());
}
}
},
Expand Down
Loading