flutter_vlc_player icon indicating copy to clipboard operation
flutter_vlc_player copied to clipboard

how to navigate next or previous video?

Open iranandroid opened this issue 3 years ago • 1 comments

Hi everybody I have two button for navigate to next and previous video. I initialize player controller with below code:

    videoPlayerController = VlcPlayerController.network(
      URL_TO_STREAM,
      autoPlay: true,
      autoInitialize: true,
      options: VlcPlayerOptions(),
    );

Now when user click in buttons, wanna change URL_TO_STREAM and stream new url. I used this below code, but not working

        videoPlayerController!.stop();
        videoPlayerController = null;

please help me

iranandroid avatar May 04 '22 07:05 iranandroid

Have you looked at the example app provided in the repo? It provides ability to change videos on tap of list view item, which is the same concept as clicking a button.

mitchross avatar May 11 '22 18:05 mitchross