januwA / flutter_video_box

flutter_video_box
MIT License
22 stars 12 forks source link

methods #7

Closed bressanelle closed 4 years ago

bressanelle commented 4 years ago

have you an idea about use methods as oncompleted((controller){ //update list of completed lessions })

?

januwA commented 4 years ago

Do you mean that you need a similar callback function?

WebView(
        onWebViewCreated: (WebViewController webViewController) {
          _controller.complete(webViewController);
        },
      )

You can listen for initialization completion like this.

    VideoController(source: VideoPlayerController.network(""))
      ..initialize().then((_) {
        // ...
      });