搜尋套件、儲存庫與 APP 分類

套件詳情v0.11.0

fijkplayer

基於 ijkplayer 的影片播放器 Flutter 外掛程式,支援大多數流行的通訊協定和編解碼器

AndroidiOS
近 30 天下載
750
喜歡數
250
Pub 分數
130

安裝套件

flutter pub add fijkplayer

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

FijkPlayer 是一個基於 ijkplayer 框架建構的 Flutter 影片播放器外掛程式,提供強大的廣泛影片協定與編解碼器支援。它能讓多樣的媒體格式在 Android 與 iOS 平台上順暢播放。設計上注重高效率與可靠性,提供對影片渲染與播放行為的底層控制。此外掛程式可無縫整合至 Flutter 的 widget 系統,並支援硬體加速、字幕顯示與自訂控制功能。非常適合需要廣泛影片相容性與客製化需求的應用。

適用情境

  • 串流影片內容
  • 播放本機影片檔案
  • 支援多種編解碼器
  • 建構媒體播放器
  • 整合字幕

主要特色

  • 廣泛的編解碼器和協議支援
  • 硬體加速播放
  • 可自定義的 UI 組件
  • 字幕支援
  • 低階播放控制

適合對象

  • 媒體密集型應用
  • 影片串流應用
  • 離線影片播放
  • 自定義影片播放器
  • 跨平台影片解決方案

使用建議

  • 需要原生平台設定
  • 有限的文件
  • 可能需要額外設定才能使用進階功能
  • 不太適合簡單的使用情境
  • 依賴於ijkplayer的穩定性

原始 README

以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。

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 加入钉钉群

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

所屬分類

原始碼儲存庫

使用此套件的專案