3 Star 0 Fork 1

mirrors_zhuker/virtual-background

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
index.html 1.62 KB
一键复制 编辑 原始数据 按行查看 历史
Alex Zhukov 提交于 2021-11-09 16:36 . webrtc virtual bg
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>WebRTC Virtual background</title>
<script type="module" src="app.ts"></script>
<style>
button {
padding: 8px 16px;
}
.parent {
position: relative;
top: 0;
left: 0;
}
.rel800 {
position: relative;
top: 0;
left: 0;
width: 800px;
}
.abs800 {
position: absolute;
top: 0;
left: 0;
width: 800px;
}
</style>
</head>
<body style="background: grey">
<div class="option">
<input id="use-stun" type="checkbox"/>
<label for="use-stun">Use STUN server</label>
</div>
<button id="start" onclick="start()">Start</button>
<button id="stop" style="display: none" onclick="stop()">Stop</button>
<div class="parent">
<!-- https://codepen.io/jonnyscholes/post/css-blend-modes -->
<img class="rel800" src="https://farm4.staticflickr.com/3888/15002876851_945906f3d6_z.jpg"/>
<canvas class="abs800" id="whiteonblack" width="800" height="532" style="mix-blend-mode: lighten;"></canvas>
<div class="abs800" style="mix-blend-mode: darken">
<video class="abs800" id="face" style="mix-blend-mode: darken" muted autoplay="true" playsinline="true"></video>
<canvas class="abs800" id="blackonwhite" width="800" height="532" style="mix-blend-mode: lighten;"></canvas>
</div>
<audio id="audio" autoplay="true"></audio>
</div>
<video id="mask" muted autoplay="true" playsinline="true"></video>
<script src="client.js"></script>
</body>
</html>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors_zhuker/virtual-background.git
git@gitee.com:mirrors_zhuker/virtual-background.git
mirrors_zhuker
virtual-background
virtual-background
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385