All Projects → tcking → GPlayer

tcking / GPlayer

Licence: MIT license
video player plugin for flutter base on ijkplayer

Programming Languages

dart
5743 projects
ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to GPlayer

Awesome video player
This is a flutter package of video player. it's a very simple and easy to use.
Stars: ✭ 161 (+215.69%)
Mutual labels:  video-player
Rtsp.player.android
RTSP player for Android / IP camera viewer
Stars: ✭ 199 (+290.2%)
Mutual labels:  video-player
Shigureader
用Chrome或者iPad轻松阅读整理漫画,播放音乐,以及观看视频. All-in-one solution for local doujin/anime/music file.
Stars: ✭ 254 (+398.04%)
Mutual labels:  video-player
Play With Mpv
Chrome extension that allows you to play videos in webpages like youtube with MPV instead
Stars: ✭ 163 (+219.61%)
Mutual labels:  video-player
Vue Core Video Player
🍟 A Lightweight Video Player For Vue.js.
Stars: ✭ 182 (+256.86%)
Mutual labels:  video-player
Voracious
A video player for studying foreign languages (esp. Japanese)
Stars: ✭ 203 (+298.04%)
Mutual labels:  video-player
Sjvideoplayer
iOS VideoPlayer MediaPlayer video player media player 短视频播放器 可接入 ijkplayer aliplayer alivodplayer plplayer
Stars: ✭ 2,066 (+3950.98%)
Mutual labels:  video-player
ti.youtube
A small library to get the URL of the desired YouTube video ID to use it natively in Ti.Media.VideoPlayer.
Stars: ✭ 13 (-74.51%)
Mutual labels:  video-player
Libvlc Go
Go bindings for libVLC and high-level media player interface
Stars: ✭ 188 (+268.63%)
Mutual labels:  video-player
Eplayer
🔮 A web-component html5 video player facing future
Stars: ✭ 253 (+396.08%)
Mutual labels:  video-player
Glow
mpv Config File Generator for Windows
Stars: ✭ 167 (+227.45%)
Mutual labels:  video-player
Nicevieoplayer
IjkPlayer/MediaPlayer+TextureView,支持列表,完美切换全屏、小窗口的Android视频播放器
Stars: ✭ 2,114 (+4045.1%)
Mutual labels:  video-player
Optivideoeditor For Android
Native Video editor : Video trim, Audio, Video merge, Slow and fast motion, Text and image, etc...
Stars: ✭ 209 (+309.8%)
Mutual labels:  video-player
Lovedoudou
爱逗逗——集新闻资讯,影视评论,漂亮妹子,视频播放于一身的app,用于练习MVP+Retrofit+RxJava+Glide框架,如今将其开源,仅供学习探讨,禁止商用。
Stars: ✭ 165 (+223.53%)
Mutual labels:  video-player
dart vlc
🎞 Flutter audio / video playback, broadcast & recording library for Windows & Linux.
Stars: ✭ 439 (+760.78%)
Mutual labels:  video-player
Web
Angular6 music player to search and play YouTube, SoundCloud and Mixcloud tracks
Stars: ✭ 156 (+205.88%)
Mutual labels:  video-player
Chimee
a video player framework aims to bring wonderful experience on browser
Stars: ✭ 2,332 (+4472.55%)
Mutual labels:  video-player
musicWebTemplate
Free website template built for musicians / artists to promote their music and connect to their audience.
Stars: ✭ 26 (-49.02%)
Mutual labels:  video-player
flex-originals
🎧 A video and audio streaming web application
Stars: ✭ 36 (-29.41%)
Mutual labels:  video-player
Mvpapp
Android MVP Architecture
Stars: ✭ 2,354 (+4515.69%)
Mutual labels:  video-player

GPlayer

pub package

Video Player plugin for Flutter,On Android, the backing player is base on ijkplayer 0.8.8 (not implement on iOS)

The example app running in Android

features

  1. base on ijkplayer(ffmpeg),support RTMP , HLS (http & https) , MP4,M4A etc.
  2. gestures for volume control
  3. gestures for brightness control
  4. gestures for forward or backward
  5. support fullscreen
  6. try to replay when error(only for live video)
  7. specify video scale type
  8. support lazy load (download player on demand)
  9. customize media controller (without change this project source code)

note: this using lazy load for default,it will take a few seconds to download decoders before first play, if you want to include the decoder in your apk just find the android/build.gradle and add the dependencies which you want to support.

Getting Started

1.add dependency

First, add gplayer as a dependency in your pubspec.yaml file.

dependencies:
  flutter:
    sdk: flutter

  # add gplayer dependency
  gplayer: ^0.0.2

2.create player

import 'package:flutter/material.dart';
import 'package:gplayer/gplayer.dart';

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

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  GPlayer player;
  @override
  void initState() {
    super.initState();
    //1.create & init player
    player = GPlayer(uri: 'http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4')
      ..init()
      ..addListener((_) {
        //update control button out of player
        setState(() {});
      });
  }

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Video Demo',
      home: Scaffold(
        appBar: AppBar(
          title: Text('GPlayer'),
        ),
        body: player.display,//3.put the player display in Widget tree
        floatingActionButton: FloatingActionButton(
          onPressed: () {
            setState(() {
              player.isPlaying ? player.pause() : player.start();
            });
          },
          child: Icon(
            player.isPlaying ? Icons.pause : Icons.play_arrow,
          ),
        ),
      ),
    );
  }
}

Customize media contoller

1.define a class extend from buildMediaController

2.implement method Widget buildMediaController(BuildContext context)

3.pass the instance to player constructor GPlayer(uri:'',mediaController:MyMeidaController())

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].