Skip to content

Commit

Permalink
feat: rename tool
Browse files Browse the repository at this point in the history
  • Loading branch information
HADB committed May 30, 2024
1 parent fb1fdda commit 0c2a02e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion content/changelog.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#### 2024-05-29

- 新增「User Agent 解析」小工具
- 新增「摄像头录制」小工具
- 新增「摄像头录制 MP4」小工具

#### 2024-05-14

Expand Down
2 changes: 1 addition & 1 deletion pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ useHead({
</NuxtLink>
<NuxtLink class="tool-link" to="/webcam-recorder">
<ElButton type="primary" size="large" plain round>
摄像头录制
摄像头录制 MP4
</ElButton>
</NuxtLink>
</el-row>
Expand Down
12 changes: 11 additions & 1 deletion pages/webcam-recorder.client.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,16 @@ let reader: ReadableStreamDefaultReader<Uint8Array>
let writer: WritableStreamDefaultWriter<Uint8Array>
let outputStream: ReadableStream<Uint8Array>
useHead({
title: '摄像头录制 MP4',
meta: [
{
name: 'description',
content: '在线调用系统摄像头录制 MP4 视频,基于 mediaDevices.getUserMedia 和 WebAV 库实现',
},
],
})
async function onStartButtonClick() {
const recodeMS = mediaStream.clone()
recorder = new AVRecorder(recodeMS, {
Expand Down Expand Up @@ -85,7 +95,7 @@ onMounted(async () => {
</script>

<template>
<page header="摄像头录制" class="page-webcam-recorder">
<page header="摄像头录制 MP4" class="page-webcam-recorder">
<div class="box-container">
<div class="video-container">
<video ref="videoRef" autoplay class="video" />
Expand Down

0 comments on commit 0c2a02e

Please sign in to comment.