better_player_windows 1.0.0
better_player_windows: ^1.0.0 copied to clipboard
The Windows implementation of the better_player plugin, providing video playback using libmpv and FFI for Flutter desktop apps.
Better Player Windows Example #
Below is an example showing how to initialize and use BetterPlayer on Windows. For more extensive examples, see the better_player_example package.
import 'package:better_player/better_player.dart';
import 'package:flutter/material.dart';
void main() => runApp(const BetterPlayerExample());
class BetterPlayerExample extends StatelessWidget {
const BetterPlayerExample({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(title: const Text('Better Player Windows Example')),
body: Column(
children: [
const SizedBox(height: 8),
BetterPlayer.network(
'https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4',
betterPlayerConfiguration: const PlayerConfiguration(
aspectRatio: 16 / 9,
),
),
],
),
),
);
}
}