stream property

PlayerStream stream
getter/setter pair

Current state of the player available as listenable Streams.

Implementation

late PlayerStream stream = PlayerStream(
  playlistController.stream.distinct(),
  playingController.stream.distinct(),
  completedController.stream.distinct(),
  positionController.stream.distinct(),
  durationController.stream.distinct(),
  volumeController.stream.distinct(),
  rateController.stream.distinct(),
  pitchController.stream.distinct(),
  bufferingController.stream.distinct(),
  bufferController.stream.distinct(),
  playlistModeController.stream.distinct(),
  audioParamsController.stream.distinct(),
  videoParamsController.stream.distinct(),
  audioBitrateController.stream.distinct(),
  audioDeviceController.stream.distinct(),
  audioDevicesController.stream.distinct(),
  trackController.stream.distinct(),
  tracksController.stream.distinct(),
  widthController.stream.distinct(),
  heightController.stream.distinct(),
  subtitleController.stream.distinct(),
  logController.stream.distinct(),
  errorController.stream /* ERROR STREAM SHOULD NOT BE DISTINCT */,
);