yjz-web-sdk 1.0.2-beta.4 → 1.0.3-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.
|
@@ -37,6 +37,14 @@ export declare enum ActionCommandType {
|
|
|
37
37
|
export interface ActionCommand {
|
|
38
38
|
type: ActionCommandType;
|
|
39
39
|
}
|
|
40
|
+
export declare enum ActionCommandEventType {
|
|
41
|
+
/** 云机控制拉流端是否推流 Camera 和 MIC 数据到云机侧,或拉流端控制云机是否推流三方播放的音频 */
|
|
42
|
+
ACTION_CONTROL_VIDEO_AND_AUDIO = "ACTION_CONTROL_VIDEO_AND_AUDIO",
|
|
43
|
+
/** 控制是否推送视频 */
|
|
44
|
+
ACTION_CONTROL_VIDEO = "ACTION_CONTROL_VIDEO",
|
|
45
|
+
/** 控制是否推送音频 */
|
|
46
|
+
ACTION_CONTROL_AUDIO = "ACTION_CONTROL_AUDIO"
|
|
47
|
+
}
|
|
40
48
|
export declare const ActionType: {
|
|
41
49
|
readonly ACTION_DOWN: 0;
|
|
42
50
|
readonly ACTION_MOVE: 2;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { WebRTCConfigOptions } from "../rtc/WebRTCConfig.ts";
|
|
2
|
-
import type
|
|
3
|
-
|
|
2
|
+
import { type ChannelDataType } from "../data/WebrtcDataType.ts";
|
|
3
|
+
import { EventEmitter } from "eventemitter3";
|
|
4
|
+
export declare class GroupControllerManager extends EventEmitter {
|
|
4
5
|
private webRTCConfigList;
|
|
5
6
|
private sdkList;
|
|
6
7
|
private loopTimer;
|
package/lib/index.d.ts
CHANGED
|
@@ -2,7 +2,8 @@ import { WebRTCSdk } from './core/WebRTCSdk';
|
|
|
2
2
|
import { getKeyEventData } from "./core/util/KeyCodeUtil";
|
|
3
3
|
import { transformCoordinate, valueToPercentage } from "./core/util/ScreenControlUtil";
|
|
4
4
|
import { ActionType, ChannelDataType, ContainerDirection, InputData, KeyEventData, TouchData, WheelData, GestureData, type ActionCommand, ActionCommandType } from "./core/data/WebrtcDataType";
|
|
5
|
+
import type { WebRTCConfigOptions } from './core/rtc/WebRTCConfig';
|
|
5
6
|
import { GroupControllerManager } from "./core/groupctrl/GroupControllerManager.ts";
|
|
6
7
|
import { EmitType } from "./core/data/WebRtcError";
|
|
7
8
|
import RemotePlayer from './components/RemotePlayer/index.vue';
|
|
8
|
-
export { WebRTCSdk, getKeyEventData, transformCoordinate, valueToPercentage, ActionType, ChannelDataType, InputData, KeyEventData, TouchData, ContainerDirection, EmitType, WheelData, GestureData, type ActionCommand, ActionCommandType, GroupControllerManager, RemotePlayer };
|
|
9
|
+
export { WebRTCSdk, getKeyEventData, transformCoordinate, valueToPercentage, ActionType, ChannelDataType, InputData, KeyEventData, TouchData, ContainerDirection, EmitType, WheelData, GestureData, type ActionCommand, ActionCommandType, GroupControllerManager, type WebRTCConfigOptions, RemotePlayer };
|
package/lib/yjz-web-sdk.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.vContainer[data-v-
|
|
1
|
+
.vContainer[data-v-f0ecea8b]{transition:transform .2s linear}.flex[data-v-f0ecea8b]{display:flex}.flex-1[data-v-f0ecea8b]{flex:1 1 0}.items-center[data-v-f0ecea8b]{align-items:center}.justify-center[data-v-f0ecea8b]{justify-content:center}.video-control[data-v-f0ecea8b]{width:100%;height:100%;background:#747bff;object-fit:fill;border:none;-webkit-user-drag:none}.circle-cursor[data-v-f0ecea8b]{cursor:url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20fill='none'%3e%3ccircle%20cx='12'%20cy='12'%20r='12'%20fill='%23fff'%20opacity='.6'/%3e%3ccircle%20cx='12'%20cy='12'%20r='10'%20fill='%23000'%20opacity='.6'/%3e%3c/svg%3e") 12 12,auto}.triangle-cursor[data-v-f0ecea8b]{cursor:url("data:image/svg+xml,%3csvg%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20width='22'%20height='22'%3e%3cpath%20d='M143.832313%205.834982H143.686438A108.676545%20108.676545%200%200%200%205.834982%20143.686438l34.499333-11.815839-34.499333%2011.815839%200.072938%200.218812%200.145874%200.437624%200.583498%201.750494%202.333993%206.71023%208.752474%2025.528047L49.232663%20269.867929a2254749.467572%202254749.467572%200%200%201%20223.917444%20652.351017l9.335972%2027.205605%202.552804%207.585476%200.729373%202.188119a72.572592%2072.572592%200%200%200%20126.181491%2040.844876%2072.134968%2072.134968%200%200%200%2014.076895-18.963693c3.282178-6.41848%205.689108-13.639271%208.023101-20.3495l0.072937-0.291749%2072.572592-209.329989%2047.409231-136.830334%2015.53564-44.710551%200.145874-0.364687%200.510561-0.145874%2045.002301-15.900327%20137.486769-48.649165c99.340573-35.228705%20202.984445-71.989094%20209.913487-74.906584l3.355115-1.312871c8.023101-3.136303%2022.391744-8.606599%2033.915834-20.130689a72.499655%2072.499655%200%200%200%200-102.549813L999.240712%20304.877823c-1.823432-1.969307-7.293728-7.731351-13.274585-11.961714a89.056417%2089.056417%200%200%200-27.205605-12.3264h-0.145874l-2.552805-0.875247L948.184617%20277.161657l-27.86204-9.263034-94.672588-31.800653A405018.007245%20405018.007245%200%200%201%20268.919745%2048.138604L178.039896%2017.504947%20152.657723%208.752473%20145.874556%206.637292%20144.196999%205.90792%20143.832313%205.834982z'%20fill='%23000000'%20opacity='.7'%3e%3c/path%3e%3c/svg%3e") 1 1,auto}.default-cursor[data-v-f0ecea8b]{cursor:default}.no-events[data-v-f0ecea8b]{pointer-events:none!important}
|