Skip to content

idevsig/flarum-asciinema

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Asciinema Extension for Flarum

License Latest Stable Version

A Flarum extension. Add asciinema to Flarum.

Usage

[asciinema id=5E5V7BWvQ34LqjqIhF9JIQI8a][/asciinema]

[asciinema id=5E5V7BWvQ34LqjqIhF9JIQI8a][/asciinema]

[asciinema id="5E5V7BWvQ34LqjqIhF9JIQI8a" start="2" auto="1" loop="0" speed="1" idle="" poster="npt:1:23" theme="monokai" cols="" rows="" preload="0" ][/asciinema]
Option Default Value Type Description
id alpha or int Must be set
start 0 int start-at. start the playback at a given time.
auto 0 int autoplay. 0 or 1. the playback should start automatically upon a page load.
loop 0 int 0 or 1. enable looped playback.
speed 1 int the playback speed.
idle idle-time-limit. optimize away idle moments in a recording.
poster display in player's terminal until the playback is started. i.e: npt:1:23
theme string asciinema dracula monokai nord solarized-dark solarized-light tango
cols int override player's terminal width.
rows int override player's terminal height.
preload 0 int 0 or 1. the player should start fetching the recording immediately upon a page load, before a viewer starts the playback.

Installation

composer require idevsig/flarum-asciinema

Updating

composer update idevsig/flarum-asciinema
php flarum cache:clear

Links