flutter_vlc_player
flutter_vlc_player copied to clipboard
how to navigate next or previous video?
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
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.