gemercheung d0f0976651 加framerate hai 1 ano
..
src d0f0976651 加framerate hai 1 ano
README.md 1302467e86 1.1.1 %!s(int64=2) %!d(string=hai) anos
package.json fc5e412c69 1.1.6 %!s(int64=2) %!d(string=hai) anos
tsconfig.build.json 758f1ad507 init %!s(int64=3) %!d(string=hai) anos
tsconfig.json 758f1ad507 init %!s(int64=3) %!d(string=hai) anos

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, // 是否调试,
});
//  开始录屏方法
 videoRecorder.startRecord();
// 停止录屏方法
 videoRecorder.endRecord();


videoRecorder.on('startRecord', () => {
    //开始录屏event
});
videoRecorder.on('record', (data: Blob) => {
    //录屏后片断数据
    console.log('record', data);
});

videoRecorder.on('endRecord', (data: Blob) => {
    //结束录屏event
});



#  <button type="button" @click="videoRecorder.startRecord">开始录屏</button>
#  <button type="button" @click="videoRecorder.endRecord">停止录屏</button>

resolution

4K | 2K |1080p