Subtitle Wrapper Plugin.
- Displaying of vtt subtitles
- Loading of vtt subtitles from network
- Subtitle styling
This widget wraps the video player and displays the vtt subtitles on top.
@override
Widget build(BuildContext context) {
return Padding(
padding: const EdgeInsets.all(12.0),
child: Card(
elevation: 2.0,
child: SubTitleWrapper(
videoPlayerController: videoPlayerController,
subtitleController: SubtitleController(
subtitleUrl: subtitleUrl,
showSubtitles: true,
),
subtitleStyle:
SubtitleStyle(textColor: Colors.white, hasBorder: true),
videoChild: Chewie(
controller: chewieController,
))),
);
}
Demonstrates how to use the subtitle_wrapper_package plugin.
See the example documentation for more information.
See CHANGELOG.md.
Feel free to contribute by opening issues and/or pull requests. Your feedback is very welcome!
MIT License
Copyright (c) [2019] [Joran Dob]