Skip to content

willwillems/asciiplayer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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()

About

Plays video files as ascii in the browser

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published