{"repo":"fluttercommunity/chewie","free":true,"listed":false,"github":"https://github.com/fluttercommunity/chewie","clone":"git clone https://github.com/fluttercommunity/chewie.git","description":"The video player for Flutter with a heart of gold","language":"Dart","stars":2061,"topics":["flutter","video-player"],"license":"MIT","category":"mobile-apps","readme_excerpt":"chewie The video player for Flutter with a heart of gold. The video player plugin provides low-level access to video playback. Chewie uses the video player under the hood and wraps it in a friendly Material or Cupertino UI! Table of Contents 1. 🚨 IMPORTANT!!! (READ THIS FIRST) 2. 🔀 Flutter Version Compatibility 3. 🖼️ Preview 4. ⬇️ Installation 5. 🕹️ Using it 6. ⚙️ Options 7. 🔡 Subtitles 8. 🧪 Example 9. ⏪ Migrating from Chewie Since version 1.1.0, Chewie supports subtitles. Chewie allows you to enhance the video playback experience with text overlays. You can add a List to your ChewieController , restyle the default subtitle box with subtitleStyle , or replace it entirely with the subtitleBuilder function. Showing Subtitles by Default Chewie provides the showSubtitles flag, allowing you to control whether subtitles are displayed automatically when the video starts. By default, this flag is set to false . Adding Subtitles Here’s an example of how to add subtitles to your ChewieController : Subtitle Structure The Subtitle model contains the following key attributes: - index : A unique identifier for the subtitle, useful for database integration. - start : The starting point of the subtitle, defined as a Duration . - end : The ending point of the subtitle, defined as a Duration . - text : The subtitle text that will be displayed. For example, if your video is 10 minutes long and you want to add a subtitle that appears between 00:00 and 00:10 , you can define it like this: M","default_branch":null,"files":null,"tree":[],"storefront":"/r/fluttercommunity","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/fluttercommunity/chewie/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}