custom_vimeo_player 1.0.1
custom_vimeo_player: ^1.0.1 copied to clipboard
A Flutter package for embedding Vimeo videos with customizable playback controls, events handling.
custom_vimeo_player #
A Flutter package for embedding Vimeo videos with customizable playback controls, events handling.
Features #
- 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
Preview #
Usage #
import 'package:custom_vimeo_player/custom_vimeo_player.dart';
CustomVimeoPlayer(
videoId: '<your_vimeo_id>',
),
copied to clipboard
Required parameters #
| Parameter | Description |
|---|---|
| String vimeoId | The ID of the Vimeo video to be played. |
Optional parameters #
| 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 |
Dependencies #
- flutter_inappwebview: ^6.1.5