subtitle_wrapper_package 1.0.2

Flutter Android iOS web

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]

12
likes
100
pub points
78%
popularity

Publisher

qreate.io

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

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

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

More

Packages that depend on subtitle_wrapper_package