fijkplayer 0.0.5

Flutter plugin for ijkplayer

fijkplayer #

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

Note: This plugin is still under development, and some APIs might not be available yet. Feedback welcome and Pull Requests are most welcome!

Installation #

First, add fijkplayer as a dependency in your pubspec.yaml file.

iOS #

Warning: The video player is not functional on iOS simulators. An iOS device must be used during development/testing.

Android #

Ensure the following permission is present in your Android Manifest file if you want to play a network stream, located in <project root>/android/app/src/main/AndroidManifest.xml:

<uses-permission android:name="android.permission.INTERNET"/>

The example in this plugin project adds it, so it may already be there.

Example #

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

class VideoScreen extends StatefulWidget {
  final String url;

  VideoScreen({@required this.url});

  _VideoScreenState createState() => _VideoScreenState(url: url);

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

  _VideoScreenState({@required this.url});

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

  Widget build(BuildContext context) {
    return Scaffold(
        appBar: AppBar(title: Text("Fijkplayer Example")),
        body: Container(
          child: FijkView(
            player: player,
            // panelSize: FijkPanelSize.MatchView,
            // alignment:,
            // aspectRatio: 1,
            // width: 320,
            // height: 180,
            // builder: defaultFijkPanelBuilder,

  void dispose() {

Demo Screenshots #

iOS screenshots

ios_input       ios_video

android screenshots

android_home       android_video