fijkplayer 0.1.1

  • Readme
  • Changelog
  • Example
  • Installing
  • 93

fijkplayer (Video player plugin for Flutter) #

pub package     Build Status    

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

Read this in other languages: English, 简体中文.

Feedback welcome and Pull Requests are most welcome!

Installation #

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

  fijkplayer: ^0.1.1

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() {

Demo Screenshots #

iOS screenshots

ios_input       ios_video

android screenshots

android_home       android_video

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 #

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


import 'package:flutter/material.dart';

import 'home_page.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  Widget build(BuildContext context) {
    return new MaterialApp(
      theme: ThemeData(
        primaryColor: Color(0xFFffd54f),
        primaryColorDark: Color(0xFFffc107),
        primaryColorLight: Color(0xFFffecb3),
        accentColor: Color(0xFFFFC107),
        dividerColor: Color(0xFFBDBDBD),
      home: HomeScreen(),

Use this package as a library

1. Depend on it

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

  fijkplayer: ^0.1.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 Mar 10, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.7.1
  • pana: 0.13.5
  • Flutter: 1.12.13+hotfix.8

Health suggestions

Format lib/generated/i18n.dart.

Run flutter format to format lib/generated/i18n.dart.


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.8
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies