Asciinema Extension for Flarum
A Flarum extension. Add asciinema to Flarum.
Usage
[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]
Configuration Options
1. id
- Default Value: None
- Type:
alpha
or int
- Description: Must be set.
2. start
- Default Value:
0
- Type:
int
- Description: start-at. Begin playback at a specified time.
3. auto
- Default Value:
0
- Type:
int
- Description: autoplay.
0
or 1
. Determines whether playback starts automatically upon page load.
4. loop
- Default Value:
0
- Type:
int
- Description:
0
or 1
. Enables looped playback.
5. speed
- Default Value:
1
- Type:
int
- Description: Playback speed.
6. idle
- Default Value: None
- Type: Not specified
- Description: idle-time-limit. Optimizes away idle moments in a recording.
7. poster
- Default Value: None
- Type: Not specified
- Description: Displayed in the player's terminal until playback starts, e.g.,
npt:1:23
.
8. theme
- Default Value: None
- Type:
string
- Description: Theme style options, e.g.,
asciinema
, dracula
, monokai
, nord
, solarized-dark
, solarized-light
, tango
.
9. cols
- Default Value: None
- Type:
int
- Description: Override the terminal width in the player.
10. rows
- Default Value: None
- Type:
int
- Description: Override the terminal height in the player.
11. preload
- Default Value:
0
- Type:
int
- Description:
0
or 1
. Determines whether the player should start fetching the recording immediately upon page load, before the viewer initiates playback.
Installation
composer require idevsig/flarum-asciinema
Updating
composer update idevsig/flarum-asciinema
php flarum cache:clear
Links