Coder Social home page Coder Social logo

rsatom / webgl-video-renderer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from magics-group/wcjs-renderer

18.0 4.0 7.0 43 KB

allow render video frames on HTML canvas with WebGL

Home Page: https://www.npmjs.com/package/webgl-video-renderer

License: MIT License

JavaScript 100.00%

webgl-video-renderer's Introduction

Install

npm install webgl-video-renderer

Usage example

https://github.com/RSATom/wcjs-ugly-demo

JavaScript API

  • init(canvas, options) -> renderContext: initiate the renderer. canvas - DOM node or selector (mandatory).
  • renderContext.render(frame, width, height, uOffset, vOffset): draws video frame with I420 pixel format on canvas
  • renderContext.fillBlack(): draws a single black frame on the canvas, should be used after stopping the player and/or when the media file has changes (otherwise the frame from the previous video will be kept on the canvas)

webgl-video-renderer's People

Contributors

rsatom avatar jaruba avatar luigiplr avatar ivshti avatar shenanigans avatar

Stargazers

zahgboat avatar he ping avatar Ash Norseman avatar 0x1306a94 avatar Antonio Gómez-Maldonado avatar Samanvya Tripathi avatar Peter avatar ctiao avatar XiaHan avatar xqq avatar ChungTak avatar Mayde avatar SwhGo_oN avatar Amila Welihinda avatar Prashanth C A avatar matthiasg avatar Aleksandr Kukhta avatar Alex Binary avatar

Watchers

James Cloos avatar  avatar Alex Binary avatar  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.