Skip to content

Commit

Permalink
Camera stream optimizations (#156)
Browse files Browse the repository at this point in the history
Simplified the logic for the mjpeg stream decoding and display, along
with adding text for bandwidth and FPS
* Use stream builder instead of flutter hooks
* Remove StreamManager, instead have one change notifier to hold the
state and decoding streams
* Only start a camera stream when the widget becomes focused
* Rebuild the widget when focus changes, automatically restarting
streams properly
  • Loading branch information
Gold872 authored Dec 14, 2024
1 parent afaf233 commit 5ec65e2
Show file tree
Hide file tree
Showing 6 changed files with 327 additions and 303 deletions.
4 changes: 4 additions & 0 deletions lib/services/log.dart
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ class Log {
void debug(dynamic message, [dynamic error, StackTrace? stackTrace]) {
log(Level.debug, message, error, stackTrace);
}

void trace(dynamic message, [dynamic error, StackTrace? stackTrace]) {
log(Level.trace, message, error, stackTrace);
}
}

Log get logger => Log.instance;
Loading

0 comments on commit 5ec65e2

Please sign in to comment.