@midscene/visualizer 1.0.1-beta-20251104101357.0 → 1.0.1-beta-20251106111345.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -557,6 +557,8 @@ function Player(props) {
|
|
|
557
557
|
}
|
|
558
558
|
})().catch((e)=>{
|
|
559
559
|
console.error('player error', e);
|
|
560
|
+
if ((null == e ? void 0 : e.message) === ERROR_FRAME_CANCEL) return void console.log('Animation cancelled (expected behavior)');
|
|
561
|
+
const wasRecording = !!recorderSessionRef.current;
|
|
560
562
|
if (recorderSessionRef.current) {
|
|
561
563
|
try {
|
|
562
564
|
recorderSessionRef.current.stop();
|
|
@@ -566,7 +568,7 @@ function Player(props) {
|
|
|
566
568
|
recorderSessionRef.current = null;
|
|
567
569
|
}
|
|
568
570
|
setIsRecording(false);
|
|
569
|
-
message.error('Failed to export video. Please try again.');
|
|
571
|
+
if (wasRecording) message.error('Failed to export video. Please try again.');
|
|
570
572
|
}));
|
|
571
573
|
return ()=>{
|
|
572
574
|
null == cancelFn || cancelFn();
|
|
@@ -597,6 +597,8 @@ function Player(props) {
|
|
|
597
597
|
}
|
|
598
598
|
})().catch((e)=>{
|
|
599
599
|
console.error('player error', e);
|
|
600
|
+
if ((null == e ? void 0 : e.message) === ERROR_FRAME_CANCEL) return void console.log('Animation cancelled (expected behavior)');
|
|
601
|
+
const wasRecording = !!recorderSessionRef.current;
|
|
600
602
|
if (recorderSessionRef.current) {
|
|
601
603
|
try {
|
|
602
604
|
recorderSessionRef.current.stop();
|
|
@@ -606,7 +608,7 @@ function Player(props) {
|
|
|
606
608
|
recorderSessionRef.current = null;
|
|
607
609
|
}
|
|
608
610
|
setIsRecording(false);
|
|
609
|
-
external_antd_namespaceObject.message.error('Failed to export video. Please try again.');
|
|
611
|
+
if (wasRecording) external_antd_namespaceObject.message.error('Failed to export video. Please try again.');
|
|
610
612
|
}));
|
|
611
613
|
return ()=>{
|
|
612
614
|
null == cancelFn || cancelFn();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@midscene/visualizer",
|
|
3
|
-
"version": "1.0.1-beta-
|
|
3
|
+
"version": "1.0.1-beta-20251106111345.0",
|
|
4
4
|
"repository": "https://github.com/web-infra-dev/midscene",
|
|
5
5
|
"homepage": "https://midscenejs.com/",
|
|
6
6
|
"types": "./dist/types/index.d.ts",
|
|
@@ -60,10 +60,10 @@
|
|
|
60
60
|
"antd": "^5.21.6",
|
|
61
61
|
"buffer": "6.0.3",
|
|
62
62
|
"dayjs": "^1.11.11",
|
|
63
|
-
"@midscene/core": "1.0.1-beta-
|
|
64
|
-
"@midscene/
|
|
65
|
-
"@midscene/
|
|
66
|
-
"@midscene/
|
|
63
|
+
"@midscene/core": "1.0.1-beta-20251106111345.0",
|
|
64
|
+
"@midscene/playground": "1.0.1-beta-20251106111345.0",
|
|
65
|
+
"@midscene/web": "1.0.1-beta-20251106111345.0",
|
|
66
|
+
"@midscene/shared": "1.0.1-beta-20251106111345.0"
|
|
67
67
|
},
|
|
68
68
|
"license": "MIT",
|
|
69
69
|
"scripts": {
|