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!
installation
in your pubspec.yaml
file within your flutter project:
dependencies:
chewie: <latest_version>
use it
import 'package:chewie/chewie.dart';
final playerwidget = new chewie(
new videoplayercontroller.network(
'https://flutter.github.io/assets-for-api-docs/videos/butterfly.mp4'
),
aspectratio: 3 / 2,
autoplay: true,
looping: true,
);
example for video player
please run the app in the example/
folder to start playing!
ios warning
the video player plugin used by chewie is not functional on ios simulators. an ios device must be used during development/testing. please refer to this issue.
Comments are closed.