Coder Social home page Coder Social logo

video_player_aurora's Introduction

video_player_aurora

The implementation of the Video Player plugin for Aurora OS. APIs are designed to be API compatible with the the official video_player.

image

Required libraries

This plugin uses GStreamer internally.

# Install as needed.
$ aurora_psdk sb2 -t Aurora_OS-4.0.2.249-armv7hl.default -m sdk-install -R zypper in gstreamer1.0-plugins-base-devel

Usage

pubspec.yaml

dependencies:
  video_player: ^2.6.1
  video_player_aurora:
    git:
      url: https://gitlab.com/alexsherkhan/video_player_aurora
      path: ./
      ref: main

Source code

Import video_player in your Dart code:

import 'package:video_player/video_player.dart';

Enable GstEGLImage

If GstEGLImage is enabled on your target device, adding the following code to <user's project>/aurora/CMakeLists.txt may improve playback performance.

add_definitions(-DUSE_EGL_IMAGE_DMABUF)
set(USE_EGL_IMAGE_DMABUF "on")

Customize for your target devices

To improve the performance of this plugin, you will need to customize the pipeline in the source file. Please modify the source file and replace the videoconvert element with a H/W accelerated element of your target device to perform well.

bool GstVideoPlayer::CreatePipeline() in packages/video_player/aurora/gst_video_player.cc

default:

playbin uri=<file> video-sink="videoconvert ! video/x-raw,format=RGBA ! fakesink"

i.MX 8M platforms:

playbin uri=<file> video-sink="imxvideoconvert_g2d ! video/x-raw,format=RGBA ! fakesink"

video_player_aurora's People

Contributors

alexsherkhan avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.