flutter_vlc_player icon indicating copy to clipboard operation
flutter_vlc_player copied to clipboard

`autoPlay: false` option is being ignored

Open jraufeisen opened this issue 2 years ago • 0 comments

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()
}

jraufeisen avatar Jun 12 '22 22:06 jraufeisen