|
3 vuotta sitten | |
---|---|---|
.. | ||
src | 3 vuotta sitten | |
README.md | 3 vuotta sitten | |
package.json | 3 vuotta sitten | |
tsconfig.build.json | 3 vuotta sitten | |
tsconfig.json | 3 vuotta sitten |
录屏核心 SDK
http://192.168.0.47:4873/-/web/detail/@simaq/core.
npm install @Simaq/core
import { VideoRecorder } from '@simaq/core';
const videoRecorder = new VideoRecorder({
uploadUrl: '',
resolution: '4k',
autoDownload: true,
debug: true, // 是否调试,
});
// 开始录屏
const handlerStartRecord = videoRecorder.startRecord;
// 停止录屏
const handlerEndRecord = videoRecorder.endRecord;
# <button type="button" @click="videoRecorder.startRecord">开始录屏</button>
# <button type="button" @click="videoRecorder.endRecord">停止录屏</button>