Skip to content
Flutter VLC player inside widget
Dart Java Objective-C Ruby
Branch: master
Clone or download
solid-software Merge pull request #19 from SscSPs/removeExtraFiles
Remove the extra files that should not be version controlled
Latest commit 04ed55e Dec 26, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
android Migrate to androidx Mar 5, 2019
example Version 0.0.2 (AndroidX support added) Mar 14, 2019
ios IOS player fix Jan 8, 2019
lib
.gitignore Package was renamed Feb 27, 2019
.metadata Initial commit Jan 4, 2019
CHANGELOG.md Readme.md update Mar 14, 2019
LICENSE License + ReadMe Feb 25, 2019
README.md Readme.md update Mar 14, 2019
imgpsh_mobile_save.jfif
pubspec.yaml Version 0.0.2 (AndroidX support added) Mar 14, 2019

README.md

VLC Player Plugin

Flutter plugin to view local videos and videos from the network. Work example:

Getting Started

iOS integration: For iOS you needed to add this two rows into Info.plist file (see example for details):

<key>io.flutter.embedded_views_preview</key>
<true/>

To start using the plugin, copy this code or follow the example:

import 'package:flutter/material.dart';
import 'package:flutter_vlc_player/vlc_player.dart';
import 'package:flutter_vlc_player/vlc_player_controller.dart';

class ExampleVideo extends StatefulWidget {
  @override
  _ExampleVideoState createState() => _ExampleVideoState();
}

class _ExampleVideoState extends State<ExampleVideo> {
  final String urlToStreamVideo = 'http://213.226.254.135:91/mjpg/video.mjpg';
  final VlcPlayerController controller = VlcPlayerController();
  final int playerWidth = 640;
  final int playerHeight = 360;

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: VlcPlayer(
        defaultWidth: playerWidth,
        defaultHeight: playerHeight,
        url: urlToStreamVideo,
        controller: controller,
        placeholder: Center(child: CircularProgressIndicator()),
      ),
    );
  }
}

To take screenshot from video just follow next code:

Uint8List image = await controller.makeSnapshot();

Current issues

Current issues list is here.
Found a bug? Open the issue.

You can’t perform that action at this time.