av_media_player 0.7.2 copy "av_media_player: ^0.7.2" to clipboard
av_media_player: ^0.7.2 copied to clipboard

retracted

A lightweight media player for flutter that builds on system components. Video rendering in Texture widget.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:av_media_player/widget.dart';

void main() => runApp(const MyApp());

class MyApp extends StatefulWidget {
  const MyApp({super.key});

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  var _loading = true;

  @override
  Widget build(BuildContext context) => Stack(
        alignment: Alignment.center,
        children: [
          AvMediaView(
            initSource:
                'https://devstreaming-cdn.apple.com/videos/streaming/examples/bipbop_4x3/bipbop_4x3_variant.m3u8',
            initLooping: true,
            initAutoPlay: true,
            onCreated: (player) => player.loading.addListener(
                () => setState(() => _loading = player.loading.value)),
          ),
          if (_loading) const CircularProgressIndicator(),
        ],
      );
}
5
likes
0
pub points
70%
popularity

Publisher

unverified uploader

A lightweight media player for flutter that builds on system components. Video rendering in Texture widget.

Repository (GitHub)
View/report issues

Topics

#audio #video #media #player #hls

License

unknown (license)

Dependencies

flutter

More

Packages that depend on av_media_player