初探asciinema

在学习c++的时候想到so库注入到某些程序中,网上查了一些资料,发现了一些比较好玩的程序,分享一下。css

主要能够对操做的进行视频回放,相似堡垒机的功能html

 

 

安装:java

pip3 install asciinemac++

 

使用:git

asciinema rec /path/filenamegithub

 

保存的文件就是就是录制文件,可是不是video,flash格式,ide

须要使用https://github.com/asciinema/asciinema-player/releases学习

CSS+JSui

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>ASCIINEMA DEMO</title>
    <link rel="stylesheet" href="asciinema-player.css">
</head>
<body> <!-- src引入视频文件 -->
<asciinema-player src="demo.cast"></asciinema-player>        <script src="asciinema-player.js"></script>               </body> </html>

便可播放,可上传到server进行保存视频,即为成为堡垒机视频spa

 

demo: scan.javasec.cn/video.html

相关文章
相关标签/搜索