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

discontinued
outdatedDart 1 only

Fullscreen video launcher plugin

VideoLauncher #

Example #

cd flutter_video_launcher/example
flutter packages get
flutter run

screenshot

Usage #

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

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.

⚠️ iOS App Transport Security #

By default iOS forbids loading from non-https url. To cancel this restriction edit your .plist and add :

<key>NSAppTransportSecurity</key>
<dict>
    <key>NSAllowsArbitraryLoads</key>
    <true/>
</dict>

cf. Configuring App Transport Security Exceptions in iOS

Getting Started #

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

0
likes
25
pub points
0%
popularity

Publisher

unverified uploader

Fullscreen video launcher plugin

Repository (GitHub)
View/report issues

License

BSD-3-Clause (LICENSE)

Dependencies

flutter

More

Packages that depend on video_launcher