패키지, 저장소 및 앱 카테고리 검색

패키지 상세v0.11.0

fijkplayer

ijkplayer를 기반으로 한 비디오 플레이어 플러터 플러그인으로, 대부분의 인기 있는 프로토콜과 코덱을 지원합니다.

AndroidiOS
30일 다운로드
750
좋아요
250
Pub 점수
130

패키지 설치

flutter pub add fijkplayer

패키지 개요

공개 정보를 바탕으로 생성한 선택 가이드입니다.

FijkPlayer는 ijkplayer 프레임워크를 기반으로 한 Flutter 비디오 플레이어 플러그인으로, 다양한 비디오 프로토콜과 코덱에 대한 강력한 지원을 제공합니다. 안드로이드 및 iOS 플랫폼에서 다양한 미디어 형식을 원활하게 재생할 수 있습니다. 고성능과 신뢰성을 위해 설계되었으며, 비디오 렌더링 및 재생 동작에 대한 저수준 제어를 제공합니다. Flutter의 위젯 시스템과 원활하게 통합되며 하드웨어 가속, 자막 렌더링, 사용자 정의 컨트롤 등의 기능을 지원합니다. 광범위한 비디오 호환성과 맞춤형 기능이 필요한 앱에 적합합니다.

사용 사례

  • 스트리밍 비디오 콘텐츠
  • 로컬 비디오 파일 재생
  • 다양한 코덱 지원
  • 미디어 플레이어 구축
  • 자막 통합

주요 기능

  • 광범위한 코덱 및 프로토콜 지원
  • 하드웨어 가속 재생
  • 사용자 정의 가능한 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 加入钉钉群

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

카테고리

소스 저장소

이 패키지를 사용하는 프로젝트