js的captureStream实现在线webm视频提取分离音频文件代码
代码语言:html
所属分类:多媒体
代码描述:js的captureStream实现在线webm视频提取分离音频文件代码
代码标签: js captureStream 在线 webm 视频 提取 分离 音频 文件 代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>WebM音频完整分离工具</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"> <style> * { box-sizing: border-box; margin: 0; padding: 0; } body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; line-height: 1.6; color: #333; background: linear-gradient(135deg, #f0f4f8 0%, #d9e4ee 100%); padding: 20px; min-height: 100vh; } .container { max-width: 1200px; margin: 0 auto; background: white; border-radius: 16px; box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08); overflow: hidden; } header { background: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%); color: white; padding: 35px 25px; text-align: center; position: relative; overflow: hidden; } .header-content { position: relative; z-index: 2; } .header-wave { position: absolute; bottom: 0; left: 0; width: 100%; height: 100px; background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 120" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M0 0v46.29c47.79 22.2 103.59 32.17 158 28 70.36-5.37 136.33-33.31 206.8-37.5 73.84-4.36 147.54 16.88 218.2 35.26 69.27 18 138.3 24.88 209.4 13.08 36.15-6 69.85-17.84 104.45-29.34C989.49 25 1113-14.29 1200 52.47V0z" fill="rgba(255,255,255,0.15)"/></svg>'); background-size: 1200px 100px; } h1 { font-size: 2.8rem; margin-bottom: 15px; font-weight: 700; } .subtitle { font-size: 1.2rem; opacity: 0.92; max-width: 700px; margin: 0 auto; font-weight: 300; } .content { padding: 35px; } .upload-section { background: #f8fafd; border-radius: 12px; padding: 30px; margin-bottom: 35px; text-align: center; border: 2px dashed #cbd5e1; transition: all 0.3s ease; position: relative; } .upload-section:hover { border-color: #4361ee; background: #edf2ff; transform: translateY(-3px); box-shadow: 0 8px 20px rgba(67, 97, 238, 0.1); } .upload-icon { font-size: 3.5rem; color: #4361ee; margin-bottom: 20px; } .file-input-wrapper { position: relative; display: inline-block; margin: 20px 0; } .file-input-wrapper input[type="file"] { position: absolute; left: 0; top: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; } .custom-file-button { display: inline-flex; align-items: center; background: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%); color: white; padding: 14px 35px; border-radius: 50px; font-weight: 600; font-size: 1.1rem; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 6px 18px rgba(67, 97, 238, 0.35); } .custom-file-button:hover { transform: translateY(-3px); box-shadow: 0 10px 25px rgba(67, 97, 238, 0.45); } .custom-file-button i { .........完整代码请登录后点击上方下载按钮下载查看
网友评论0