flutter_gstreamer_player 0.0.1 copy "flutter_gstreamer_player: ^0.0.1" to clipboard
flutter_gstreamer_player: ^0.0.1 copied to clipboard

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

example/lib/main.dart

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: Column(
          children: <Widget>[
            Expanded(
              child: Row(
                children: <Widget> [
                  Expanded(
                    child: 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''',
                    ),
                  ),
                  Expanded(
                    child: 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''',
                    ),
                  ),
                ],
              ),
            ),
            Expanded(
              child: Row(
                children: <Widget> [
                  Expanded(
                    child: 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''',
                    ),
                  ),
                  Expanded(
                    child: 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''',
                    ),
                  ),
                ],
              ),
            ),
          ],
        ),
      ),
    );
  }
}
10
likes
0
pub points
72%
popularity

Publisher

unverified uploader

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

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_gstreamer_player