From 19ed4aca649a7b6ae3e50c77ff44ce3f1f56d96a Mon Sep 17 00:00:00 2001 From: gxz Date: Thu, 19 Dec 2024 16:51:08 +0800 Subject: [PATCH] chore: optimize --- .../examples/advanced/MediaRecorder/MediaRecorder.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/example/src/renderer/examples/advanced/MediaRecorder/MediaRecorder.tsx b/example/src/renderer/examples/advanced/MediaRecorder/MediaRecorder.tsx index f640bb7d1..c2099b700 100644 --- a/example/src/renderer/examples/advanced/MediaRecorder/MediaRecorder.tsx +++ b/example/src/renderer/examples/advanced/MediaRecorder/MediaRecorder.tsx @@ -202,7 +202,7 @@ export default class MediaRecorder channelId: string, uid: number, state: RecorderState, - error: RecorderReasonCode + reason: RecorderReasonCode ) { this.info( 'onRecorderStateChanged', @@ -212,8 +212,8 @@ export default class MediaRecorder uid, 'state', state, - 'error', - error + 'reason', + reason ); switch (state) { case RecorderState.RecorderStateStart: