javacs3 / xterm-player Goto Github PK
View Code? Open in Web Editor NEWa web based terminal recording player
Home Page: https://javacs3.github.io/xterm-player/
License: MIT License
a web based terminal recording player
Home Page: https://javacs3.github.io/xterm-player/
License: MIT License
unzip the file to get .cast file to reproduce.
Code used.
var terminalDiv = document.createElement("div");
document.body.appendChild(terminalDiv);
let castSrc = "... the src url to the file"
const player = new XtermPlayer.XtermPlayer(castSrc, terminalDiv , {
fontSize: 12
});
player.play();
The top command hides everything unless followed by a clear
https://github.com/JavaCS3/xterm-player/assets/139169536/0f3158c0-daf7-46c8-9ef9-85edd6c1ee0d
when xterm-player url invalid or remote responding error, UI should show a error notification
Depending on xtermjs/xterm.js#2713 Currently xterm-serialize-addon doesn't support alternate buffer serialization
Actually, xterm.js provides lots of options that can be used to customize terminal(e.g., many people want to change font or theme.), can we expose all or some of options in xterm.ITerminalOptions
to user?
Due to current framing strategy, xterm-player will refresh whole terminal if moving from a frame to next frame.
Lines 151 to 161 in 2462cdb
Sorry, rather a question than an issue.
Looked at the format of asciinema v2 which looks to be utf8-unicoded.
"it's UTF-8 encoded JSON string, with all non-printable Unicode codepoints encoded as \uXXXX"
Looked thru the code to figure out how this is handled and passed to xterm.write that seems to expect utf16.
If you could point out where this is dealt with I would really appreciate it!
looks like a webpack 4 bug
https://medium.com/@JakeXiao/window-is-undefined-in-umd-library-output-for-webpack4-858af1b881df
case 'Paused':
this._bigButton.style.display = 'block'
// change icon
this._bigButton.innerHTML = Icons.Play
this._spinner.style.display = 'none'
break
addDisposableDomListener(this._playbackRate, 'click', () => {
this._playbackRateSettingBox.classList.toggle('xp-setting-box-open')
})
this._playbackRateItems.forEach(item => {
addDisposableDomListener(item, 'click', () => {
this._player.playbackRate = parseFloat(item.dataset['rate'] || '1')
// add this
this._playbackRateSettingBox.classList.toggle('xp-setting-box-open')
})
})
A possible way to fix this issue needs re-implement Audio system via Web Audio API which require a lot of efforts
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.