asciiplayer
v0.3.1
Published
Video player that renders videos to ASCII in real-time
Downloads
3
Readme
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()