I'm wanting to have the ProgressBar placed outside the widget's bottom and below the video, but when I put it there, it's not able to find the controller with the _controller = YoutubePlayerController.of(context);
So I duplicated the ProgressBar.dart as my own component and modded it to pass in YoutubePlayerController (and some other minor mods to add option to not allow moving forward on the progress, which functions) and I got it partially working, but after tinkering with it, it's not calling positionListener on the controller to update the progress bar. It looks correct, but something is off.
Here's my modified version I hope someone can help me with:
YoutubeProgressBar.dart
When I was using it with internal variable _controller, it wasn't getting the video values but it worked when I called it as widget.controller. However, the addListener isn't updating when it's playing.. Any thoughts?
I'm wanting to have the ProgressBar placed outside the widget's bottom and below the video, but when I put it there, it's not able to find the controller with the _controller = YoutubePlayerController.of(context); So I duplicated the ProgressBar.dart as my own component and modded it to pass in YoutubePlayerController (and some other minor mods to add option to not allow moving forward on the progress, which functions) and I got it partially working, but after tinkering with it, it's not calling positionListener on the controller to update the progress bar. It looks correct, but something is off. Here's my modified version I hope someone can help me with: YoutubeProgressBar.dart
When I was using it with internal variable _controller, it wasn't getting the video values but it worked when I called it as widget.controller. However, the addListener isn't updating when it's playing.. Any thoughts?