结合<video>
和 <canvas>
来实现实时操作视频数据。
<!DOCTYPE html>
<html>
<head>
<style>
body {
background: black;
color:#CCCCCC;
}
div {
float: left;
border :1px solid #444444;
padding:10px;
margin: 10px;
background:#3B3B3B;
}
</style>
</head>
<body>
<div>
<video id="video" src="./spark.mp4" controls="true"/>
</div>
<div>
<canvas id="c1" width="48