0.3.1 • Published 4 years ago

asciiplayer v0.3.1

Weekly downloads
5
License
ISC
Repository
github
Last release
4 years ago

ASCII player

Check out the player demo here, drag a video file on the page and it should play. Also you can check out a webcam linked demo here. You can find the source of both demo's in the root of this repo.

Example

// all options are optional
const player = Player({
  pixels: [],         // array with pixels to use,
  fps: 60,            // fps to render video with
  width: 100,         // width in chars
  height: 60,         // height in chars
  noBar: false,       // permanently hide controll bar
  preserveRatio: 'fit'// can be null, 'fit' or 'cover'
})

// set element to render ASCII text to (required)
player.init(pixelRenderer)

// URL to get video from, accepts everything <video> does (required)
player.setSourceMedia()
0.3.1

4 years ago

0.3.0

4 years ago

0.2.0

4 years ago

0.1.0

4 years ago