flutter_subtitle_wrapper
flutter_subtitle_wrapper copied to clipboard
This is an subtitle package for flutter video player.
## Description Rewrote the parsing functionality to be more concise and easier to read also created a helper function _parseTime to parse the time components and construct the Duration objects....
**Description** The currently implemented regex parsing only works when the webvtt is in 00:00:00.430 --> 00:00:04.360 (HH:MM:SS format) it doesn't parse webvtt when it's in 00:07.690 --> 00:08.900 (MM:SS) format...
## Description I didn't find a way to add padding or make text container full width. So now `SubtitleTextView` can take extra arguments to set it. ```dart class SubtitleWrapper extends...
## Description Users can now toggle the subtitles. I added a setter and getter for showSubtitles. Users can now use set isShowSubtitles(bool newValue) { showSubtitles = newValue; } to toggle...
## Description On player controller update, compare current position to start time, not only to end time, so that the current subtitle doesn't stay on screen when seeking back to...
**Description** The following situations cannot be parsed correctly. ```srt 1 00:00:01,650 --> 00:00:02,450 贝蒂 Betty? 2 00:00:03,150 --> 00:00:04,830 现在是不是 Isn't it time for... ``` **Solution** add parse lines `*(\r\n|\r|\n)(?:.*)`....
**Description** A clear and concise description of what the bug is. **Steps To Reproduce** 1. First screen: ```dart // controller VideoPlayerController _controller = VideoPlayerController.networkUrl( Uri.parse(url), videoPlayerOptions: VideoPlayerOptions( allowBackgroundPlayback: true, ),...
## Description This Pull Request adds header capabilities for the fetching of the subtitles. This is in particular useful for handling authenticated requests. ## Type of Change - [x] ✨...
…splay ## Description Add prop `enabled` to widget switch on / off show subtitle. ## Type of Change - [x] ✨ New feature (non-breaking change which adds functionality) - [...