A Flutter package for embedding Vimeo videos with customizable playback controls, events handling.
- Simple vimeo video integration
- Customizable player controls (autoPlay, loop, muted, etc.)
- Event handling (play, pause, end, etc.)
- Native iOS/Android support via InAppWebView
- MIT licensed
import 'package:custom_vimeo_player/custom_vimeo_player.dart';
CustomVimeoPlayer(
videoId: '<your_vimeo_id>',
),
Parameter | Description |
---|---|
String vimeoId | The ID of the Vimeo video to be played. |
Parameter | Description |
---|---|
bool autoPlay | automatically starts playback when loaded (default: false) |
bool loop | loops video when it ends (default: false) |
bool muted | starts video muted (default: false) |
bool showTitle | shows video title (default: false) |
bool showByline | shows video byline (default: false) |
bool controls | shows playback controls (default: true) |
bool dnt | prevents tracking (Do Not Track) (default: true) |
VoidCallback? onReady | called when video is ready play |
VoidCallback? onPlay | called when video starts playing |
VoidCallback? onPause | called when video is paused |
VoidCallback? onEnd | called when video ends |
VoidCallback? onSeeked | called when video position is changed |
- flutter_inappwebview: ^6.1.5