flutter_vlc_player
flutter_vlc_player copied to clipboard
How to remove subtitle after added from file
My app need to edit and update subtitle file frequently. And, after update the subtitle content file it need to update to VLC player to reflect the changes. I use:
_videoPlayerController.addSubtitleFromFile(
subtitleFile.file,
isSelected: true,
);
Every times I update the file content and call that function, a new "subtitle" is added in the player. So, how can I remove the old one?