flv_lzc 1.0.0 copy "flv_lzc: ^1.0.0" to clipboard
flv_lzc: ^1.0.0 copied to clipboard

A Video Player Flutter plugin based on ijkplayer, support FLV/H.265 and most popular protocols and codecs. Fixed compatibility issues for modern Flutter versions.

flv_lzc (Video player plugin for Flutter) #

pub package

A Flutter media player plugin for iOS and Android based on ijkplayer.

This is a fixed version of fijkplayer 0.11.0 with compatibility improvements for modern Flutter versions.

Key Features #

  • Fixed Compatibility: Resolved mRegistrar deprecation issues for Flutter 3.x+
  • FLV/H.265 Support: Full support for FLV streams with H.265 codec
  • Low Latency: Optimized for live streaming with minimal delay
  • Cross Platform: Works on both iOS and Android
  • Based on ijkplayer: Powerful media playback capabilities

What's Fixed #

This package fixes the following issues from the original fijkplayer:

  • Removed deprecated mRegistrar usage in Android plugin
  • Updated to use modern Flutter plugin API
  • Improved compatibility with Flutter 3.x and above
  • Maintained all original features and functionality

Documentation 文档 #

Installation 安装 #

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

dependencies:
  flv_lzc: ^1.0.0

Or use the latest version from pub.dev:

dependencies:
  flv_lzc: ^1.0.0

Example 示例 #

import 'package:flv_lzc/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("FLV LZC Player Example")),
        body: Container(
          alignment: Alignment.center,
          child: FijkView(
            player: player,
          ),
        ));
  }

  @override
  void dispose() {
    super.dispose();
    player.release();
  }
}

iOS Warning 警告 #

Warning: The 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.

Credits #

This package is based on fijkplayer by befovy. We've made compatibility fixes for modern Flutter versions while maintaining all the original functionality.

License #

MIT License - see LICENSE file for details

1
likes
140
points
72
downloads

Publisher

unverified uploader

Weekly Downloads

A Video Player Flutter plugin based on ijkplayer, support FLV/H.265 and most popular protocols and codecs. Fixed compatibility issues for modern Flutter versions.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on flv_lzc

Packages that implement flv_lzc