talira

Material and Cupertino video player controls for Flutter, on top of video_player

open sourceMITfree

chewie is a Flutter package that wraps the official video_player plugin in ready-made playback controls, in Material, Material desktop and Cupertino styles. It adds full screen with auto-rotation, a playback speed menu and other options in a bottom sheet, subtitles, YouTube-style chapter segments on the progress bar, custom controls, and a cast button and device picker that hand playback to a receiver you implement (it ships no Cast sender of its own). It's a UI layer only: playback and its platform errors come from video_player.

Problems it solves

  • add play, pause, seek and full-screen controls to videos in my Flutter app without building them myself
  • show subtitles and a playback speed menu on a video in Flutter
  • a Flutter video player that looks native on both iOS and Android

Features

  • Material, Material desktop and Cupertino control skins
  • subtitles with custom styling
  • YouTube-style chapter segments on the progress bar
  • cast button and device picker for a sender you supply

Limitations

  • Playback itself is the video_player plugin's: Chewie is only the UI on top, and on Android a Flutter bug in reporting buffering can hide the controls when seeking backwards while paused.1