パッケージ、リポジトリ、アプリカテゴリを検索

パッケージ詳細v2.2.1

subtitle_wrapper_package

サブタイトルラッパーのパッケージ。このサブタイトルラッパーのパッケージは、動画プレーヤーの字幕を表示します。

AndroidiOSmacOS
30日間ダウンロード
859
いいね数
79
Pub ポイント
140

パッケージをインストール

flutter pub add subtitle_wrapper_package

パッケージ概要

公開情報に基づく選定ガイドです。参考としてご利用ください。

subtitle_wrapper_package は、ビデオプレーヤー向けの字幕を表示するための Flutter プラグインです。Flutter の動画再生機能とシームレスに統合されており、開発者が動画コンテンツと同期したタイムテキストオーバーレイをレンダリングできるようにしています。複数の字幕フォーマットをサポートし、キャプションを表示するためのクリーンでカスタマイズ可能なインターフェースを提供します。クロスプラットフォーム対応で、Android、iOS、macOS で動作するため、アクセシブルで正確な字幕レンダリングが必要なマルチメディアアプリケーションに最適です。

用途

  • 字幕付きの動画再生
  • マルチリンガル動画アプリ
  • メディアプレーヤーのアクセシビリティ機能
  • 教育ビデオプラットフォーム
  • 字幕付きライブストリーミング

主な機能

  • タイムスタンプ付き字幕同期
  • 複数の字幕形式のサポート
  • クロスプラットフォーム互換性
  • カスタマイズ可能な字幕スタイル
  • ビデオプレーヤーとの簡単な統合

適している対象

  • 動画アプリを開発する開発者
  • アクセシビリティサポートを必要とするアプリ
  • 教育または言語学習プラットフォーム
  • メディアストリーミングサービス

注意事項

  • 互換性のあるビデオプレーヤーのセットアップが必要です
  • 字幕ファイル形式はサポートされている必要があります
  • 高度な編集なしで基本的な字幕レンダリングに限定

元の README

関連するソースリポジトリの README 原文のスナップショットです。最新の内容はリポジトリをご覧ください。

subtitle_wrapper_package

Test and (dry-run) publish package

codecov licence

Features

Subtitle playback for the 2 most widely used subtitle formats are supported currently which can be dynamically updated during playback from a url of content string. As well as basic styling of the subtitle text item.

The package is nearly completely unit tested and widget tests are in progress.

Function Description Implemented
Parse WebVTT Parsing of WebVtt subtitles. ✔
Parse SubRip (.srt) Parsing of SubRip subtitles. ✔
Remote loading utf8 encoded subtitles The parsing of subtitle files with the utf8 encoding from an url. ✔
Remote loading latin1 encoded subtitles The parsing of subtitle files with the latin1 encoding from an url. ✔
Dynamic updating of subtitle Update subtitle content during playback. ✔
Standard subtitle styling Standard styling of subtitle items. ✔
Advance subtitle styling Advance styling of subtitle items. Like custom fonts. ✔

Installation

The basic setup of the package is really straight forward, create a instance of SubtitleController with a subtitleUrl or subtitlesContent depending if your resource is remote or local.

Unfortunately currently its required to specify the subtitle type so webvtt or srt .

After this you need to wrap your video player with the SubTitleWrapper and add the SubtitleController and videoPlayerController to the SubTitleWrapper . That's it :tada:

 final SubtitleController subtitleController = SubtitleController(
    subtitleUrl: "https://pastebin.com/raw/ZWWAL7fK",
    subtitleType: SubtitleType.webvtt,
  );
  
 SubtitleWrapper(
       videoPlayerController: videoPlayerController,
       subtitleController: subtitleController,
       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]

カテゴリー

依存関係

依存関係一覧 6 件

ソースリポジトリ

このパッケージを使用しているプロジェクト

データはまだありません。