vimeo_video_player 0.0.9 vimeo_video_player: ^0.0.9 copied to clipboard
A Video Player that support videos from Vimeo platform in Flutter. This Package allow us to play any videos from Vimeo by using its Vimeo Video Id.
import 'package:flutter/material.dart';
import 'package:vimeo_video_player/vimeo_video_player.dart';
void main() => runApp(const MyApp());
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return const MaterialApp(
home: MyHomePage(),
debugShowCheckedModeBanner: false,
);
}
}
class MyHomePage extends StatefulWidget {
const MyHomePage({Key? key}) : super(key: key);
@override
_MyHomePageState createState() => _MyHomePageState();
}
class _MyHomePageState extends State<MyHomePage> {
/// also support url like this: 'www.vimeo.com/70591644', 'vimeo.com/70591644'
final String _vimeoVideoUrl = 'https://vimeo.com/70591644';
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: Colors.black,
body: SafeArea(
child: VimeoVideoPlayer(
url: _vimeoVideoUrl,
autoPlay: true,
),
),
);
}
}