pod_player
pod_player copied to clipboard
Is there any callback for when the video ends?
As of now there's no callback for this..
But you can listen to video using controller.addListner
can you give a simple example for this. I would really appreciate it. Thank in advanced.
Hello, you can make it like this example,
@override
void initState() {
controller = PodPlayerController(
playVideoFrom: widget.url,
..initialise();
controller.addListener(() {
if (controller.currentVideoPosition == controller.totalVideoLength) {
if (controller.isFullScreen) {
controller.disableFullScreen(context);
}
}
});
super.initState();
}