subtitle_wrapper_package 1.0.2 copy "subtitle_wrapper_package: ^1.0.2" to clipboard
subtitle_wrapper_package: ^1.0.2 copied to clipboard

outdated

A Subtitle Wrapper package, this subtitle wrapper package displays subtitles for a video player.

subtitle_wrapper_package #

flutter test automation codecov

Features #

  • Displaying of webvtt/srt subtitles
  • Loading of webvtt/srt subtitles from network
  • Subtitle styling

Installation #

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,
              ),
            ),
          ),
    );

  }

Example #

Demonstrates how to use the subtitle_wrapper_package plugin.

See the example documentation for more information.

Changelog #

See CHANGELOG.md.

Contributing #

Feel free to contribute by opening issues and/or pull requests. Your feedback is very welcome!

License #

MIT License

Copyright (c) [2019] [Joran Dob]

66
likes
0
pub points
92%
popularity

Publisher

verified publisherjorandob.nl

A Subtitle Wrapper package, this subtitle wrapper package displays subtitles for a video player.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

bloc, equatable, flutter, flutter_bloc, http, http_parser, video_player

More

Packages that depend on subtitle_wrapper_package