|
@@ -44,11 +44,11 @@ videoRecorder.on('startRecord', () => {
|
|
|
videoRecorder.on('record', (data: Blob) => {
|
|
|
//录屏后片断数据
|
|
|
console.log('record', data);
|
|
|
- // handleAutoDownload([data]);
|
|
|
});
|
|
|
videoRecorder.on('endRecord', (data) => {
|
|
|
console.log('endRecord', data);
|
|
|
sound.stop();
|
|
|
+ handleAutoDownload([data]);
|
|
|
//结束录屏event
|
|
|
});
|
|
|
videoRecorder.on('cancelRecord', () => {
|
|
@@ -74,7 +74,6 @@ const handleAutoDownload = async (chunks: Blob[]) => {
|
|
|
};
|
|
|
onMounted(() => {
|
|
|
// const GoldPlay = (window as any).GoldPlay;
|
|
|
-
|
|
|
// let el = document.querySelector('.play-container');
|
|
|
// //播放器参数
|
|
|
// let options = {
|
|
@@ -86,7 +85,6 @@ onMounted(() => {
|
|
|
// libPath: 'https://omc3i.codesandbox.io/',
|
|
|
// };
|
|
|
// let player = new GoldPlay(el, options);
|
|
|
-
|
|
|
// const testFrame: HTMLIFrameElement = document.getElementById(
|
|
|
// 'testFrame',
|
|
|
// ) as HTMLIFrameElement;
|
|
@@ -102,7 +100,6 @@ onMounted(() => {
|
|
|
// console.log('testFrame-load', canvas);
|
|
|
// };
|
|
|
// testFrame.addEventListener('load', () => {
|
|
|
-
|
|
|
// if (canvas) {
|
|
|
// videoRecorder.updateCanvas(canvas);
|
|
|
// }
|