fijkplayer 0.2.1

  • Readme
  • Changelog
  • Example
  • Installing
  • 89

fijkplayer (Video player plugin for Flutter) #

简体中文 #

手把手带你写 Flutter 系统音量插件

pub package     Build Status    

A Flutter media player plugin for iOS and android based on ijkplayer

Feedback welcome and Pull Requests are most welcome!

Documentation #

Installation #

Add fijkplayer as a dependency in your pubspec.yaml file.

  fijkplayer: ^0.2.1

Use git branch which not published to pub.

      ref: develop # can be replaced to branch or tag name

Example #

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

class VideoScreen extends StatefulWidget {
  final String url;

  VideoScreen({@required this.url});

  _VideoScreenState createState() => _VideoScreenState();

class _VideoScreenState extends State<VideoScreen> {
  final FijkPlayer player = FijkPlayer();


  void initState() {
    player.setDataSource(widget.url, autoPlay: true);

  Widget build(BuildContext context) {
    return Scaffold(
        appBar: AppBar(title: Text("Fijkplayer Example")),
        body: Container(
          child: FijkView(
            player: player,

  void dispose() {

Contributors ✨ #

Thanks goes to these wonderful people (emoji key)

This project follows the all-contributors specification. Contributions of any kind welcome

iOS Warning #

Warning: The fijkplayer video player plugin is not functional on iOS simulators. An iOS device must be used during development/testing. For more details, please refer to this issue.

Next Plan #

See the development plan of next version in

Changelog #

0.2.1 (2019-11-16)

  • fix: wrong screen orientation after exit full screen mode on Android (#108) (d0fea2c), closes #73

0.2.0 (2019-11-15)

0.1.10 (2019-11-15)

  • new API, FijkVolume.getVol() (#100) (dd57cea)
  • set datasource member variable when setDataSource (20f94de)
  • proguard for android class (1f85f28), closes #98
  • update doc error method name. FijkVolume.setUIMode (#102) (c33cc11)

0.1.9 #

  • FijkView: fix fullscreen no state, no refresh when state change #77
  • panel: fix error CircularProgressIndicator when autoPlay is false #76

0.1.8 #

  • FijkView: add fsFit argument, controls full screen FijkFit mode

0.1.7 #

  • fijkplayer: fix android volume double float cast error
  • fijkplayer: fix error pause state after seeking #65

0.1.6 #

  • fijkplayer: update FijkVolume API, break change

0.1.5 #

  • ios: fix NSUrl parse error
  • fijkplayer: add FijkLog with levels
  • docs: english translation
  • fijkplayer: new feature fijkvolume, system volume API
  • ijkplayer: set default option start-on-prepated to 0
  • iOS: fix CocoaPods use_frameworks! error

0.1.3 #

  • ffmpeg: enable concat and crypto protocol
  • fijkplayer: add static method all() to get all fijkplayer instance
  • fix: issue #31, pixelbuffer crash on iOS

0.1.2 #

  • fijkvalue: add video / audio render started
  • fijkplayer: remove setIntOption API, use setOption instead

0.1.1 #

  • fix fijkpanel slider value out of range
  • android: add androidx support

0.1.0 #

  • update ijkplauer to f0.3.5
  • fijkplayer err state and FijkException
  • support playing flutter asset file
  • unit test and widget test
  • pass fijkoption arguments and set player's option

0.0.9 #

  • update ijkplayer to f0.3.4
  • add RTSP support
  • decrease libary binary size

0.0.8 #

  • update ijkplayer to f0.3.3
  • fix reset bug, #26
  • Add doc website,
  • Add diagram about FijkState, update FijkState document

0.0.7 #

  • Update FijkView widget tree, add FijkFit (scaling mode)
  • fix pixelbuffer leak on iOS

0.0.6 #

  • FijkSourceType as a option argument

0.0.5 #

  • add FijkPanel (UI controller of video)

0.0.3 #

  • add more comment and update README

0.0.2 #

  • make iOS CocoaPods FIJKPlayer available

0.0.1 #

  • A usable music player plugin
  • Draw the video frame through surface for android


fijkplayer demo #

Demonstrates how to use the fijkplayer plugin.

Getting Started #

This project is a starting point for a Flutter application.

A few resources to get you started if this is your first Flutter project:

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

Run Mac OS Desktop Example #

cd fijkplayer/go/dlib/darwin
go get -u -v
cd fijkplayer/example
hover plugins get
hover run
Logo 通过 DesignEvo 设计制作

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  fijkplayer: ^0.2.1

2. Install it

You can install packages from the command line:

with Flutter:

$ flutter pub get

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:fijkplayer/fijkplayer.dart';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Nov 16, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.6.0
  • pana: 0.12.21
  • Flutter: 1.9.1+hotfix.6


Detected platforms: Flutter

References Flutter, and has no conflicting libraries.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.1.0 <3.0.0
flutter 0.0.0
Transitive dependencies
collection 1.14.11 1.14.12
meta 1.1.7 1.1.8
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies