I am using video_player plugin in my Flutter app and when I want to add a caption file I have to specifice a Future to the initialize method of VideoPlayerController. And I cannot find any way to change captions after the controller is initialized. But I have tried a way, I have added a method called setClosedCaptionFile in video_player source code and it is working. But I am wondering is there any other(correct) way to change the caption file?
update the plugin to the latest version, they added setClosedCaptionFile
in the last update 2.4.0
check it here