原生js实现摄像头麦克风视频录制和下载效果代码
代码语言:html
所属分类:多媒体
代码描述:原生js实现摄像头麦克风视频录制和下载效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<style>
.layout {
background-color: #fff;
margin: 50px;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
.layout__video .video__player {
background-color: #000;
width: 500px;
height: 400px;
}
.layout__video .video__player.video__player--recorder {
height: 368px;
margin-top: -10px;
}
.layout__video .video__player.video__player--player {
margin-left: 50px;
}
.layout__video .video__buttons {
border: 0;
background-color: #fafafa;
font-weight: 100;
font-size: 12px;
margin-top: -4px;
padding: 4px;
}
.layout__video .video__buttons .video__buttons--record {
margin-top: 2px;
}
@media screen and (max-width: 1150px) {
.layout {
flex-direction: column;
}
.layout__video .video__player.video__player--player {
margin-left: 0;
margin-top: 50px;
}
}
</style>
</head>
<body>
<div class="layout">
<div class="layout__video">
<video class="video__player video__player--recorder" id="js-video-recorder" autoplay muted.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0