VideoPlayerState constructor

VideoPlayerState({
  1. required VideoState state,
  2. required VideoController controller,
  3. required List<String> paths,
  4. required double height,
  5. required double width,
})

Implementation

VideoPlayerState({
  required VideoState state,
  required VideoController controller,
  required List<String> paths,
  required this.height,
  required this.width,
}) : super(
        isPlaying: controller.player.state.playing,
        paths: paths,
      ) {
  _state = state;
  _controller = controller;
  stream = controller.player.stream;
  this.state = controller.player.state;
  _player = _controller.player;
}