@ray-js/ipc-player-integration 0.0.1-beta-34 → 0.0.1-beta-35

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.
@@ -11,6 +11,7 @@ declare const Strings: kit.I18N<{
11
11
  ipc_player_record_success_check: string;
12
12
  ipc_player_recording_now_tip: string;
13
13
  ipc_player_stop_recording_err: string;
14
+ ipc_player_resolution_change_error: string;
14
15
  };
15
16
  zh: {
16
17
  ipc_player_resolution_HD: string;
@@ -23,6 +24,7 @@ declare const Strings: kit.I18N<{
23
24
  ipc_player_record_success_check: string;
24
25
  ipc_player_recording_now_tip: string;
25
26
  ipc_player_stop_recording_err: string;
27
+ ipc_player_resolution_change_error: string;
26
28
  };
27
29
  }, {
28
30
  ipc_player_resolution_HD: string;
@@ -35,6 +37,7 @@ declare const Strings: kit.I18N<{
35
37
  ipc_player_record_success_check: string;
36
38
  ipc_player_recording_now_tip: string;
37
39
  ipc_player_stop_recording_err: string;
40
+ ipc_player_resolution_change_error: string;
38
41
  } | {
39
42
  ipc_player_resolution_HD: string;
40
43
  ipc_player_resolution_SD: string;
@@ -46,5 +49,6 @@ declare const Strings: kit.I18N<{
46
49
  ipc_player_record_success_check: string;
47
50
  ipc_player_recording_now_tip: string;
48
51
  ipc_player_stop_recording_err: string;
52
+ ipc_player_resolution_change_error: string;
49
53
  }>;
50
54
  export default Strings;
@@ -10,6 +10,7 @@ declare const _default: {
10
10
  ipc_player_record_success_check: string;
11
11
  ipc_player_recording_now_tip: string;
12
12
  ipc_player_stop_recording_err: string;
13
+ ipc_player_resolution_change_error: string;
13
14
  };
14
15
  zh: {
15
16
  ipc_player_resolution_HD: string;
@@ -22,6 +23,7 @@ declare const _default: {
22
23
  ipc_player_record_success_check: string;
23
24
  ipc_player_recording_now_tip: string;
24
25
  ipc_player_stop_recording_err: string;
26
+ ipc_player_resolution_change_error: string;
25
27
  };
26
28
  };
27
29
  export default _default;
@@ -9,7 +9,8 @@ export default {
9
9
  ipc_player_shot_success_check: 'View',
10
10
  ipc_player_record_success_check: 'View',
11
11
  ipc_player_recording_now_tip: 'Recording in progress...',
12
- ipc_player_stop_recording_err: 'Failed to stop recording. Please exit and try again.'
12
+ ipc_player_stop_recording_err: 'Failed to stop recording. Please exit and try again.',
13
+ ipc_player_resolution_change_error: 'Switch failed, check device and network.'
13
14
  },
14
15
  zh: {
15
16
  ipc_player_resolution_HD: '高清',
@@ -21,6 +22,7 @@ export default {
21
22
  ipc_player_shot_success_check: '查看',
22
23
  ipc_player_record_success_check: '查看',
23
24
  ipc_player_recording_now_tip: '正在录像中...',
24
- ipc_player_stop_recording_err: '结束录像失败,请退出重试'
25
+ ipc_player_stop_recording_err: '结束录像失败,请退出重试',
26
+ ipc_player_resolution_change_error: '切换失败,请检查设备及网络状态'
25
27
  }
26
28
  };
@@ -47,7 +47,14 @@ export const FullResolutionControl = props => {
47
47
  title: Strings.getLang('ipc_player_current_resolution_is_equal')
48
48
  });
49
49
  } else {
50
- setResolution(value);
50
+ setResolution(value).then(() => {
51
+ setHide(true);
52
+ }).catch(() => {
53
+ ty.showToast({
54
+ icon: 'error',
55
+ title: Strings.getLang('ipc_player_resolution_change_error')
56
+ });
57
+ });
51
58
  }
52
59
  }, [resolution]);
53
60
  return /*#__PURE__*/React.createElement(View, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ray-js/ipc-player-integration",
3
- "version": "0.0.1-beta-34",
3
+ "version": "0.0.1-beta-35",
4
4
  "description": "IPC 播放器功能集成",
5
5
  "main": "lib/index",
6
6
  "files": [