flutter_vlc_player
flutter_vlc_player copied to clipboard
`autoPlay: false` option is being ignored
Thank you for this vlc plugin! I have found the following unexpected behavior:
Description
The autoplay option seems to be ignored. I initialize a VLC controller with
_videoPlayerController =
VlcPlayerController.network(url, autoPlay: false);
but the video still plays automatically.
Runtime environment
flutter_vlc_player version: 7.1.2 (not the newest, because of incompatibitliy with flutter <3, see issue #333 ) operating system: Android 11
Observed behavior
The video is being initialized and directly begins playing.
Expected behavior
The video is initialized, but does not start playing until .play()
is called.
Workaround
_videoPlayerController.addOnInitListener(() async {
await _videoPlayerController.pause()
}