Skip to content

Commit 921c7e3

Browse files
authored
fix: fix bitrate display for remote video track. (#801)
1 parent 3ee3cd9 commit 921c7e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

example/lib/widgets/participant_stats.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class _ParticipantStatsWidgetState extends State<ParticipantStatsWidget> {
5555
listener.on<VideoReceiverStatsEvent>((event) {
5656
Map<String, String> stats = {};
5757
setState(() {
58-
if (!event.currentBitrate.isFinite && !event.currentBitrate.isNaN) {
58+
if (!event.currentBitrate.isNaN) {
5959
stats['rx'] = '${event.currentBitrate.toInt()} kpbs';
6060
}
6161
if (event.stats.mimeType != null) {

0 commit comments

Comments
 (0)