gemercheung 6f52fccaa9 core 1.0.3 пре 3 година
..
src 888d703272 update пре 3 година
README.md 6f52fccaa9 core 1.0.3 пре 3 година
package.json 6f52fccaa9 core 1.0.3 пре 3 година
tsconfig.build.json 758f1ad507 init пре 3 година
tsconfig.json 758f1ad507 init пре 3 година

README.md

@Simaq/core

录屏核心 SDK

npm 私服地址

http://192.168.0.47:4873/-/web/detail/@simaq/core.

Installation

npm install @Simaq/core

Usage

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>