fijkplayer 0.1.3

A Video Player Flutter plugin based on ijkplayer, support most popular protocols and codecs

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.

33
likes
70
pub points
89%
popularity

A Video Player Flutter plugin based on ijkplayer, support most popular protocols and codecs

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

befovy@gmail.com

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on fijkplayer