VideoFeedModel class

A non-notifying model representing a single video feed from a camera

The state for this model is not handled as a whole to improve performance, instead, this encompasses multiple state notifiers which can be individually listened to. The state notifiers are updated by a VideoModel, which will periodically update the video with received network data, as well as update the FPS.

Constructors

VideoFeedModel({required CameraName cameraName})
Constructor for video feed model, initializing camera name

Properties

cameraName CameraName
The name of the camera for this video feed
final
details CameraDetails
The details of the camera
getter/setter pair
frameCache ↔ List<int>?
The last received frame, this is cached here since frameNotifier is updated at a specific rate
getter/setter pair
frameNotifier ValueNotifier<List<int>?>
Value notifier for the video frame
getter/setter pair
framesPerSecond ValueNotifier<int>
Value notifier for the FPS
getter/setter pair
hasFrame → bool
Whether or not there is a valid frame to display
no setter
hasFrameStatus ValueNotifier<bool>
A value notifier for whether or not there is a frame present
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
id ↔ String
The camera ID
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
status ValueNotifier<CameraStatus>
Value notifier for the status of the camera
getter/setter pair

Methods

handleData(VideoData data) → void
Handles a new incoming VideoData packet
init() → void
Initializes this video feed model, resetting the FPS to 0
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resetFps() → void
Resets this video feed to its initial state as if the dashboard has just started up
toString() → String
A string representation of this object.
inherited
updateFps() → void
Sets the FPS of the feed to the number of frames received in the past second
updateFrame() → void
Updates the frameNotifier to the previously received video frame from the network

Operators

operator ==(Object other) → bool
The equality operator.
inherited