ogplayer_flutter 1.6.1 copy "ogplayer_flutter: ^1.6.1" to clipboard
ogplayer_flutter: ^1.6.1 copied to clipboard

OGPlayer — a full-featured video player SDK for Flutter wrapping the native OGPlayer Android and iOS players: HLS/DASH, DRM, IMA ads, downloads, playlists, PiP, themeable UI.

example/lib/main.dart

// A minimal example: load a stream and play it.
//
// The full demo app — every feature, one screen each — lives in its own
// repository so it can be cloned and run without this package:
// https://github.com/ogplayer-sdk/ogplayer-flutter-demos
import 'package:flutter/material.dart';
import 'package:ogplayer_flutter/ogplayer_flutter.dart';

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

class ExampleApp extends StatelessWidget {
  const ExampleApp({super.key});

  @override
  Widget build(BuildContext context) => MaterialApp(
        title: 'OGPlayer example',
        home: Scaffold(
          appBar: AppBar(title: const Text('OGPlayer')),
          body: Center(
            child: AspectRatio(
              aspectRatio: 16 / 9,
              child: OGPlayerView(
                source: OGMediaItem(
                  url: 'https://media.ogplayer.tv/tears-of-steel/master.m3u8',
                  title: 'Tears of Steel',
                ),
                autoplay: true,
              ),
            ),
          ),
        ),
      );
}
0
likes
150
points
757
downloads

Documentation

Documentation
API reference

Publisher

verified publisherogplayer.tv

Weekly Downloads

OGPlayer — a full-featured video player SDK for Flutter wrapping the native OGPlayer Android and iOS players: HLS/DASH, DRM, IMA ads, downloads, playlists, PiP, themeable UI.

Homepage

License

unknown (license)

Dependencies

flutter

More

Packages that depend on ogplayer_flutter

Packages that implement ogplayer_flutter