onStreamedFrameAvailable method Null safety

Stream<CameraImageData> onStreamedFrameAvailable(
  1. int cameraId,
  2. {CameraImageStreamOptions? options}

A new streamed frame is available.

Listening to this stream will start streaming, and canceling will stop. Pausing will throw a CameraException, as pausing the stream would cause very high memory usage; to temporarily stop receiving frames, cancel, then listen again later.


// TODO(bmparr): Add options to control streaming settings (e.g.,
// resolution and FPS).
Stream<CameraImageData> onStreamedFrameAvailable(int cameraId,
    {CameraImageStreamOptions? options}) {
  throw UnimplementedError('onStreamedFrameAvailable() is not implemented.');