reload method
Implementation
@override
void reload() async {
_initializationstream.add(InitializationEvent.initializing);
try {
await _videoPlayerController.initialize();
await _videoPlayerController.seekTo(_previousPosition);
_positionstream.add(_previousPosition);
_videoPlayerController.setPlaybackSpeed(configuration.playbackSpeed);
_videoPlayerController.setVolume(configuration.volume);
_videoPlayerController.setLooping(configuration.loop);
if (configuration.isPlaying) {
_videoPlayerController.play();
}
_startListeners();
} catch (e) {
_initializationstream.add(InitializationEvent.uninitialized);
}
}