'Flutter video_player plugin - Change ClosedCaptionFile after VideoPlayerController initialization
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?
Solution 1:[1]
update the plugin to the latest version, they added setClosedCaptionFile
in the last update 2.4.0
check it here
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | omar hatem |