flutter_present_video_player 0.1.0
flutter_present_video_player: ^0.1.0 copied to clipboard

present AVPlayerViewController and VideoView.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:flutter_present_video_player/flutter_present_video_player.dart';

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

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Plugin example app'),
        ),
        body: Center(
          child: FlatButton(
              onPressed: () {
                FlutterPresentVideoPlayer.play(
                    "https://www.runoob.com/try/demo_source/movie.mp4");
              },
              child: Text(
                "Play",
              )),
        ),
      ),
    );
  }
}
1
likes
80
pub points
0%
popularity

present AVPlayerViewController and VideoView.

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

liuliu1994@gmail.com

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_present_video_player