2022-08-25 10:46:24 +07:00
2022-05-01 15:13:19 +07:00
2022-05-01 15:13:19 +07:00
2022-05-01 15:13:19 +07:00
2022-05-01 15:13:19 +07:00
2022-05-01 15:13:19 +07:00
2022-05-01 15:13:19 +07:00
2022-05-01 15:13:19 +07:00
2022-05-01 15:13:19 +07:00

GStreamer Player Plugin

A GStreamer-powered alternative to Flutter's video_player that support Linux and Android.

Installation

Linux

Follow GStreamer's Install on Linux instuction.

Android

Follow GStreamer's Install on Android instuction.

This source code has been tested with gstreamer 1.20.1 prebuild binary

Getting Started

To start using the plugin, copy this code or follow the example project in example

import 'package:flutter/material.dart';

import 'package:flutter/services.dart';
import 'package:flutter_gstreamer_player/flutter_gstreamer_player.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        body: GstPlayer(
            pipeline:
              '''rtspsrc location=
                  rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mp4 !
                rtph264depay !
                h264parse !
                decodebin !
                videoconvert !
                video/x-raw,format=RGBA !
                appsink name=sink''',
          ),
        ),
      ),
    );
  }
}

License

Copyright (c) 2022, Nguyen Hoai Phong phongnh.36@gmail.com.

This library & work under this repository is licensed under MIT License.

S
Description
No description provided
Readme MIT 1.8 MiB
Languages
Objective-C 45.9%
C++ 14.8%
CMake 8.2%
Java 8.1%
Dart 6.7%
Other 16.3%