Is there a way to change the Youtube flutter Flags after first init.
I am trying to make it so that upon clicking a button to a new video it changes video and then also sets the Flags startAt and endAt to my chosen ints.
However controller.flags.startAt
and the end at come up with the error "can't be used as a setter because it's final.
_ytController = YoutubePlayerController(
initialVideoId: YoutubePlayer.convertUrlToId(defaultStream)!,
flags: const YoutubePlayerFlags(
mute: false,
loop: true,
autoPlay: true,
));
_ytController.startAt = 20; //doesn't allow due to final
_ytController.endAt = 30;