flutter_vlc_player icon indicating copy to clipboard operation
flutter_vlc_player copied to clipboard

How to remove subtitle after added from file

Open andj207 opened this issue 3 years ago • 0 comments

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?

andj207 avatar Aug 12 '22 03:08 andj207