fijkplayer 0.1.3

  • Readme
  • Changelog
  • Example
  • Installing
  • 86

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.

dependencies:
  fijkplayer: ^0.1.3

Example #

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

class VideoScreen extends StatefulWidget {
  final String url;

  VideoScreen({@required this.url});

  @override
  _VideoScreenState createState() => _VideoScreenState();
}

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

  _VideoScreenState();

  @override
  void initState() {
    super.initState();
    player.setDataSource(widget.url, autoPlay: true);
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
        appBar: AppBar(title: Text("Fijkplayer Example")),
        body: Container(
          alignment: Alignment.center,
          child: FijkView(
            player: player,
          ),
        ));
  }

  @override
  void dispose() {
    super.dispose();
    player.release();
  }
}

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.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, https://fijkplayer.befovy.com
  • 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

example/README.md

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.

Logo 通过 DesignEvo 设计制作

Use this package as a library

1. Depend on it

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


dependencies:
  fijkplayer: ^0.1.3

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';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
72
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
100
Overall:
Weighted score of the above. [more]
86
Learn more about scoring.

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

  • Dart: 2.5.1
  • pana: 0.12.21
  • Flutter: 1.9.1+hotfix.4

Platforms

Detected platforms: Flutter

References Flutter, and has no conflicting libraries.

Dependencies

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