flutter_native_video_player 0.0.1 copy "flutter_native_video_player: ^0.0.1" to clipboard
flutter_native_video_player: ^0.0.1 copied to clipboard

An efficient and feature rich video player plugin for Flutter applications, leveraging the power of native APIs ExoPlayer for Android and AVKit for iOS. This plugin offers extensive control over video [...]

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:flutter_native_video_player/flutter_native_video_player.dart';
import 'package:flutter_native_video_player/native_video_player.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatefulWidget {
  const MyApp({super.key});

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  final _controller = FlutterNativeVideoPlayer();

  @override
  void initState() {
    super.initState();
    _controller
        .initialise(
            "https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ForBiggerBlazes.mp4")
        .then((_) {
      setState(() {
        _controller.play();
      });
    });
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Plugin example app'),
        ),
        body: NativeVideoPlayer(
          controller: _controller,
        ),
      ),
    );
  }
}
1
likes
130
points
32
downloads

Publisher

verified publisherjieshenghow.com

Weekly Downloads

An efficient and feature rich video player plugin for Flutter applications, leveraging the power of native APIs ExoPlayer for Android and AVKit for iOS. This plugin offers extensive control over video playback, easy integration and helps to provide an immersive video experience to the users.

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on flutter_native_video_player