yjz-web-sdk 1.0.11-beta.4 → 1.0.11-beta.6
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.
|
@@ -3917,9 +3917,11 @@ class WebRTCClient extends EventEmitter {
|
|
|
3917
3917
|
const data = JSON.parse(event.data);
|
|
3918
3918
|
if (data.type === ChannelDataType.ActionCommandEvent) {
|
|
3919
3919
|
const { action, value, cameraId } = JSON.parse(data.data);
|
|
3920
|
+
console.error("data===>", data.data);
|
|
3920
3921
|
if (action === "ACTION_CONTROL_VIDEO") {
|
|
3921
3922
|
if (value === "ENABLE") {
|
|
3922
3923
|
if (this.isPushingStream) {
|
|
3924
|
+
await this.stopPush();
|
|
3923
3925
|
await this.switchCamera(Number(cameraId) === 0);
|
|
3924
3926
|
} else {
|
|
3925
3927
|
await this.startPush(Number(cameraId) === 0);
|
|
@@ -4714,6 +4716,7 @@ class WebRTCSdk extends EventEmitter {
|
|
|
4714
4716
|
sendSignOut() {
|
|
4715
4717
|
var _a, _b;
|
|
4716
4718
|
if (!this.config) return;
|
|
4719
|
+
console.log("sendSignOut===>主动断开连接");
|
|
4717
4720
|
if (this.config.connectorType === ConnectorType.LanForwarding) {
|
|
4718
4721
|
const message = {
|
|
4719
4722
|
type: SendType.GroupSignOut,
|
package/lib/uni-sdk.js
CHANGED
|
@@ -10,7 +10,7 @@ var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read fr
|
|
|
10
10
|
var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
|
|
11
11
|
var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), setter ? setter.call(obj, value) : member.set(obj, value), value);
|
|
12
12
|
var _screenStatus, _isComposing, _direction, _screenWidth, _screenHeight, _clarityLevel, _gestureMode;
|
|
13
|
-
import { W as WheelData, t as transformCoordinate, A as ActionType, v as valueToPercentage, T as TouchData, g as getKeyEventData, I as InputData, i as isFunctionKey, E as EventEmitter, C as ChannelDataType, a as WebRTCSdk, b as EmitType, F as FailCode, c as ContainerDirection, K as KeyEventData, j as ActionCommandEventValue, h as ActionCommandEventType, d as ClarityData, G as GestureData } from "./ScreenControlUtil-
|
|
13
|
+
import { W as WheelData, t as transformCoordinate, A as ActionType, v as valueToPercentage, T as TouchData, g as getKeyEventData, I as InputData, i as isFunctionKey, E as EventEmitter, C as ChannelDataType, a as WebRTCSdk, b as EmitType, F as FailCode, c as ContainerDirection, K as KeyEventData, j as ActionCommandEventValue, h as ActionCommandEventType, d as ClarityData, G as GestureData } from "./ScreenControlUtil-C-S0QaJL.js";
|
|
14
14
|
var DocumentEvent = /* @__PURE__ */ ((DocumentEvent2) => {
|
|
15
15
|
DocumentEvent2["KEY_DOWN"] = "keydown";
|
|
16
16
|
DocumentEvent2["POINTER_ENTER"] = "pointerenter";
|
|
@@ -566,7 +566,7 @@ class KeyboardControl {
|
|
|
566
566
|
this.inputDataUpdateCallback(data);
|
|
567
567
|
});
|
|
568
568
|
__publicField(this, "handleKeyboardContainerPointerenter", () => {
|
|
569
|
-
if (
|
|
569
|
+
if (this.disabled) {
|
|
570
570
|
return;
|
|
571
571
|
}
|
|
572
572
|
if (this.inputMethodEditorElement) {
|
|
@@ -576,7 +576,7 @@ class KeyboardControl {
|
|
|
576
576
|
}
|
|
577
577
|
});
|
|
578
578
|
__publicField(this, "handleKeyboardContainerPointerleave", () => {
|
|
579
|
-
if (
|
|
579
|
+
if (this.disabled) {
|
|
580
580
|
return;
|
|
581
581
|
}
|
|
582
582
|
if (this.inputMethodEditorElement) {
|
package/lib/yjz-web-sdk.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4
4
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5
|
-
import { A as ActionType, C as ChannelDataType, W as WheelData, t as transformCoordinate, v as valueToPercentage, T as TouchData, I as InputData, i as isFunctionKey, g as getKeyEventData, E as EventEmitter, a as WebRTCSdk, b as EmitType, e as enableLog, s as setLogLevel, K as KeyEventData } from "./ScreenControlUtil-
|
|
6
|
-
import { h, j, f, d, m, c, F, G, k, l } from "./ScreenControlUtil-
|
|
5
|
+
import { A as ActionType, C as ChannelDataType, W as WheelData, t as transformCoordinate, v as valueToPercentage, T as TouchData, I as InputData, i as isFunctionKey, g as getKeyEventData, E as EventEmitter, a as WebRTCSdk, b as EmitType, e as enableLog, s as setLogLevel, K as KeyEventData } from "./ScreenControlUtil-C-S0QaJL.js";
|
|
6
|
+
import { h, j, f, d, m, c, F, G, k, l } from "./ScreenControlUtil-C-S0QaJL.js";
|
|
7
7
|
import { computed, onMounted, onUnmounted, ref, onBeforeUnmount, defineComponent, toRefs, createElementBlock, openBlock, createElementVNode, normalizeStyle, unref, createCommentVNode, normalizeClass } from "vue";
|
|
8
8
|
function useCursorStyle(cursorType) {
|
|
9
9
|
return computed(() => {
|