video_launcher 0.2.1 copy "video_launcher: ^0.2.1" to clipboard
video_launcher: ^0.2.1 copied to clipboard

discontinued
outdatedDart 1 only

Fullscreen video launcher plugin

VideoLauncher #

screenshot

Usage #

To use this plugin, add video_launcher as a dependency in your pubspec.yaml file.

Example #

After importing 'package:video_launcher/video_launcher.dart' the directories can be queried as follows

To launch a video :

Future<Null> _launch(String url) async {
    if (await canLaunchVideo(url)) {
      await launchVideo(url);
    } else {
      throw 'Could not launch $url';
    }
  }

To play a local video file :

Future<Null> _launch(String url) async {
    if (await canLaunchVideo(url, isLocal:true)) {
      await launchVideo(url, isLocal:true);
    } else {
      throw 'Could not launch $url';
    }
  }

Please see the example app of this plugin for a full example.

Getting Started #

For help getting started with Flutter, view our online documentation.

0
likes
0
pub points
0%
popularity

Publisher

unverified uploader

Fullscreen video launcher plugin

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on video_launcher