Search packages, repositories and app categories

Package detailsv0.11.0

fijkplayer

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

AndroidiOS
30-day downloads
750
Likes
250
Pub points
130

Install package

flutter pub add fijkplayer

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

FijkPlayer is a Flutter video player plugin built on the ijkplayer framework, offering robust support for a wide range of video protocols and codecs. It enables smooth playback of diverse media formats across Android and iOS platforms. Designed for high performance and reliability, it provides low-level control over video rendering and playback behavior. The plugin integrates seamlessly with Flutter’s widget system and supports features like hardware acceleration, subtitle rendering, and custom controls. Ideal for apps requiring extensive video compatibility and customization.

Use cases

  • Streaming video content
  • Playing local video files
  • Supporting multiple codecs
  • Building media players
  • Integrating subtitles

Key features

  • Extensive codec and protocol support
  • Hardware-accelerated playback
  • Customizable UI components
  • Subtitle support
  • Low-level playback control

Suitable for

  • Media-heavy applications
  • Video streaming apps
  • Offline video playback
  • Custom video players
  • Cross-platform video solutions

Considerations

  • Requires native platform setup
  • Limited documentation
  • May need additional configuration for advanced features
  • Not ideal for simple use cases
  • Depends on ijkplayer's stability

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

fijkplayer (Video player plugin for Flutter) Flutter 媒体播放器

✨ 手把手带你写 Flutter 系统音量插件 ✨ Flutter 多版本管理工具 fvm ✨

HitCount     pub package     Action Status    

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

您的支持是我们开发的动力。 欢迎Star,欢迎PR~。 Feedback welcome and Pull Requests are most welcome!

Documentation 文档

  • Development Documentation https://fijkplayer.befovy.com/docs/en/ quick start、guide、and concepts about fijkplayer
  • 开发文档 https://fijkplayer.befovy.com/docs/zh/ 包含快速开始、使用指南、fijkplayer 中的概念理解
  • dart api https://pub.dev/documentation/fijkplayer/ detail API and argument explaination
  • Release Notes https://github.com/befovy/fijkplayer/releases and CHANGELOG.md
  • FAQ https://fijkplayer.befovy.com/docs/zh/faq.html

Installation 安装

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

pub package

dependencies:
  fijkplayer: ^{{latest version}}

Replace {{latest version}} with the version number in badge above.

Use git branch which not published to pub.

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

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.

Join Ding Talk Group 加入钉钉群

加入钉钉群 微信赞赏码 支付宝
加入钉钉群 微信赞赏码 支付宝二维码

Categories

Source repository

Projects using this package