Skip to content

Salzanoo/fijkplayer

 
 

Repository files navigation

fijkplayer (Video player plugin for Flutter) Flutter

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

Documentation

Installation

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

dependencies:
  fijkplayer: ^0.2.3

Use git branch which not published to pub.

dependencies:
  fijkplayer:
    git:
      url: https://github.com/salzanoo/fijkplayer.git
      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});

  @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();
  }
}

Already in use in following apps

Contact me or create pull request to add your app here.

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 https://github.com/befovy/fijkplayer/projects/2

About

Flutter video player based on ijkplayer

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • Dart 49.8%
  • Java 18.0%
  • Objective-C 16.6%
  • Go 12.5%
  • Ruby 1.7%
  • C 1.4%