The easiest way to show video for flutter

Starlight Video Player (30000MMK)

[ANDROID | IOS | WEB]

The easiest way to show video.This package will free until jun 1 2022.

Installation

Add starlight_notification as dependency to your pubspec file.

starlight_video_player: 
    git:
      url: git@github.com:YeMyoAung/starlight_video_player.git

Ios Setup

This plugin requires iOS 9.0 or higher. Add the following entry to your Info.plist file, located in /ios/Runner/Info.plist:

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

Usage

First of all you need to import our package.

import 'package:starlight_video_player/starlight_video_player.dart';

From Network StarlightVideoPlayer.network

    StarlightVideoPlayer.network(
          key: ValueKey(snapshot.data.videoUrl),
          autoPlay: true,
          controller: StarlightNetworkController(
             url: snapshot.data.videoUrl,
         ),
   )

From File StarlightVideoPlayer.file

    StarlightVideoPlayer.file(
         controller: StarlightFileController(
            file: File("filepath"),
         ),
   )

From Assets StarlightVideoPlayer.assets

    StarlightVideoPlayer.assets(
         controller: StarlightAssetsController(
              path: 'file path',
         ),
    )

From Uri StarlightVideoPlayer.uri

    StarlightVideoPlayer.uri(
         controller: StarlightUriController(
             uri: Uri.parse('file path'),
         ),
    )

Contact Us

Starlight Studio

GitHub

View Github