@ray-js/lock-sdk 1.2.3 → 1.2.4-beta.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.
@@ -17,7 +17,7 @@ import { fetchDeviceProperties } from "./remote-permissions";
17
17
  import { ipc, yuChannelSyncSingleSync } from "../../platform";
18
18
  import { sdkLog } from "../../utils/sdk-log";
19
19
  import { ProductCommunicationType, RotateType } from "../../constant";
20
- import { isHarmony, isVirtualDevice } from "../../utils";
20
+ import { isVirtualDevice } from "../../utils";
21
21
  import { getError } from "../../utils/errors";
22
22
  import { isSupportMediaForRuntime } from "../media/media";
23
23
  export const initState = async (runtime) => {
@@ -130,25 +130,23 @@ export const initState = async (runtime) => {
130
130
  runtime.config.supportTalk = true;
131
131
  runtime.config.isTwoWayTalk =
132
132
  ipcConfig.value?.audioAttributes?.callMode?.[0] === 2;
133
- if (!isHarmony()) {
134
- try {
135
- const modeRes = await ipc.getCurrentSupportedTalkMode(devId);
136
- runtime.config.isTwoWayTalk = modeRes.talkbackMode === 2;
137
- sdkLog("info", "initState", "supportTalk", {
138
- devId,
139
- duration: Date.now() - startedAt,
140
- data: {
141
- mode: modeRes.talkbackMode,
142
- },
143
- });
144
- }
145
- catch (e) {
146
- sdkLog("error", "initState", "supportTalk", {
147
- devId,
148
- duration: Date.now() - startedAt,
149
- error: e,
150
- });
151
- }
133
+ try {
134
+ const modeRes = await ipc.getCurrentSupportedTalkMode(devId);
135
+ runtime.config.isTwoWayTalk = modeRes.talkbackMode === 2;
136
+ sdkLog("info", "initState", "supportTalk", {
137
+ devId,
138
+ duration: Date.now() - startedAt,
139
+ data: {
140
+ mode: modeRes.talkbackMode,
141
+ },
142
+ });
143
+ }
144
+ catch (e) {
145
+ sdkLog("error", "initState", "supportTalk", {
146
+ devId,
147
+ duration: Date.now() - startedAt,
148
+ error: e,
149
+ });
152
150
  }
153
151
  }
154
152
  if (!isSEI &&
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ray-js/lock-sdk",
3
- "version": "1.2.3",
3
+ "version": "1.2.4-beta.0",
4
4
  "files": [
5
5
  "lib",
6
6
  "LICENSE.md"