larksr_websdk 3.2.15 → 3.2.32

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.
@@ -27,6 +27,10 @@ declare class Capabilities {
27
27
  static get isMobile(): boolean;
28
28
  static $isWeChat: boolean;
29
29
  static get isWeChat(): boolean;
30
+ static $isQQ: boolean;
31
+ static get isQQ(): boolean;
32
+ static $isHuawei: boolean;
33
+ static get isHuawei(): boolean;
30
34
  /**
31
35
  * @private
32
36
  */
@@ -3,7 +3,7 @@ export declare class Level {
3
3
  static WARN: string;
4
4
  static ERR: string;
5
5
  static TRACE: string;
6
- static getLevelIndex(level: string): 2 | 0 | 1 | 3 | 4;
6
+ static getLevelIndex(level: string): 0 | 2 | 1 | 3 | 4;
7
7
  }
8
8
  export interface LogObserver {
9
9
  onLog(msg: string): void;
@@ -1,11 +0,0 @@
1
- export declare class SDKAuth {
2
- get isSuccess(): boolean;
3
- private _isSuccess;
4
- get error(): any;
5
- private _error;
6
- constructor();
7
- auth(id: string): Promise<void>;
8
- signature(key: string, secret: string, timestamp: string): string;
9
- check(id: string): boolean;
10
- save(id: string, expire: string): void;
11
- }
@@ -1,8 +0,0 @@
1
- import { EventBase, LocalEvent } from './event_base';
2
- import GLOBAL_EVENT_TYPE from './events';
3
- interface GlobalEvent extends LocalEvent<GLOBAL_EVENT_TYPE> {
4
- }
5
- declare class Global extends EventBase<GLOBAL_EVENT_TYPE, GlobalEvent> {
6
- }
7
- declare const Bus: Global;
8
- export default Bus;
@@ -1,126 +0,0 @@
1
- import { LocalEvent } from './event_base';
2
- export declare enum GLOBAL_EVENT_TYPE {
3
- /**
4
- * video 元素已挂载
5
- */
6
- MOUNTED = 1,
7
- /**
8
- * 打开 socket
9
- */
10
- SOCKET_OPEN = 2,
11
- /**
12
- * 消息窗口
13
- */
14
- ALERT = 3,
15
- /**
16
- * 获取远程视频流
17
- */
18
- GOT_REMOTE_STREAM = 4,
19
- /**
20
- * 视频流加载成功
21
- */
22
- LOADEDMETADATA = 5,
23
- /**
24
- * 重设config
25
- */
26
- RECONFIG = 6,
27
- /**
28
- * 开始点对点连接
29
- */
30
- STARTPC = 7,
31
- /**
32
- * 连接失败
33
- */
34
- PC_FAILED = 8,
35
- /**
36
- * 结束点对点连接
37
- */
38
- STOPPC = 9,
39
- /**
40
- * 结束点对点连接
41
- */
42
- RTSP_SUCCESS = 10,
43
- /**
44
- * 刷新连接
45
- */
46
- REFRESH = 11,
47
- /**
48
- * 开始计时
49
- */
50
- START_TIMER = 12,
51
- /**
52
- * 计时结束 结束应用
53
- */
54
- COURSE_OVER = 13,
55
- /**
56
- * 退出
57
- */
58
- QUIT = 14,
59
- /**
60
- * 虚拟按键按下事件
61
- */
62
- VIRTUAL_KEY_DOWN = 15,
63
- /**
64
- * 虚拟按键抬起
65
- */
66
- VIRTUAL_KEY_UP = 16,
67
- /**
68
- * 摇杆事件
69
- */
70
- JOY_STICK_MOUSE_MOVE = 17,
71
- /**
72
- * 虚拟鼠标移动
73
- */
74
- VIRTUAL_MOUSE_MOVE = 18,
75
- /**
76
- * 虚拟鼠标触摸点移动
77
- */
78
- VIRTUAL_MOUSE_POINTER = 19,
79
- /**
80
- *
81
- */
82
- VIRTUAL_MOUSE_DOWN = 20,
83
- /**
84
- *
85
- */
86
- VIRTUAL_MOUSE_UP = 21,
87
- /**
88
- * 虚拟滚轮滚动
89
- */
90
- VIRTUAL_MOUSE_WHEEL = 22,
91
- /***
92
- * pc鼠标事件转发
93
- */
94
- MOUSE_MOVE = 23,
95
- MOUSE_WHEEL = 24,
96
- MOUSE_DOWN = 25,
97
- MOUSE_UP = 26,
98
- /**
99
- * 鼠标指针移动
100
- */
101
- CURSOR_MOVE = 27,
102
- /**
103
- * 鼠标变化
104
- */
105
- APP_CURSOR_CHANGE = 28,
106
- FULL_SCREEN_CHANGE = 29,
107
- REMOTE_SCREEN_READY = 30,
108
- DISPATCH_CONTROLLER = 31,
109
- LK_RE_CONNECT_DATA_CHANNEL = 32,
110
- LK_CLOSE_DATA_CHANNEL = 33,
111
- LK_DATA_CHANNEL_SEND_TEXT = 34,
112
- LK_DATA_CHANNEL_SEND_BINARY = 35,
113
- LK_DATA_CHANNEL_SEND_VIEW_PORT = 36,
114
- LK_DATA_CHANNEL_SEND_CLIENT_INFO = 37,
115
- LK_DATA_CHANNEL_RENDERSERVER_SEND_TEXT = 38,
116
- LK_DATA_CHANNEL_RENDERSERVER_SEND_BINARY = 39,
117
- INPUT_TEXT = 40,
118
- SET_VOLUME = 41,
119
- LK_IFRAME_POSTER_FUNC_RESTART_CLOUD_APP = 42,
120
- LK_IFRAME_POSTER_FUNC_WX_JS_BRIDGE_READY = 43,
121
- LK_REQUEST_CAPTURE_FRAME = 44,
122
- LK_REQUEST_CAPTURE_FRAME_WITH_EXTRA_DATA = 45
123
- }
124
- export declare type GlobalEvent = LocalEvent<GLOBAL_EVENT_TYPE>;
125
- export declare function createGlobalEvent(type: GLOBAL_EVENT_TYPE, target?: any): GlobalEvent;
126
- export default GLOBAL_EVENT_TYPE;
@@ -1,69 +0,0 @@
1
- export declare class Msglevel {
2
- static get INFO(): string;
3
- static get WARING(): string;
4
- static get ERROR(): string;
5
- }
6
- export declare class Msg {
7
- /**
8
- * peerconnection messages
9
- */
10
- static get CONNECT_WEBRTC(): string;
11
- static get ICE_FAILED(): string;
12
- static get ICE_SUCCESS(): string;
13
- static get WEBRTC_HANGUP(): string;
14
- /**
15
- * app server messages
16
- */
17
- static get CONNECT_WS_ERR(): string;
18
- static get CONNECT_WS_ERR_1(): string;
19
- static get CONNECT_WS_CLOSE(): string;
20
- static get APP_LOGIN_ERR_1(): string;
21
- static get APP_LOGIN_ERR_2(): string;
22
- static get CONNECT_APP_ERR(): string;
23
- static get CONNECT_APP_ERR2(): string;
24
- static get SIGNALING_APP_TIMEOUT(): string;
25
- static get REMOTE_APP_FAILED(): string;
26
- static get REMOTE_APP_CLOSE(): string;
27
- /**
28
- * control message
29
- */
30
- static get REFRESH(): string;
31
- static get COURSE_OVER(): string;
32
- static get COURSE_QUIT(): string;
33
- /**
34
- * 开启横屏
35
- */
36
- static get ORIENTATION(): string;
37
- /**
38
- * 请求相对鼠标模式
39
- */
40
- static get REQUEST_LOCK_MOUSE(): string;
41
- /**
42
- * 进入独占模式
43
- */
44
- static get LOCK_MOUSE(): string;
45
- /**
46
- * 输入参数错误
47
- */
48
- static get PARAM_ERROR(): string;
49
- /**
50
- *
51
- */
52
- static get LOAD_CONFIG_FAILED(): string;
53
- /**
54
- *
55
- */
56
- static get TOKEN_EXPIRED(): string;
57
- /**
58
- * 浏览器需要用户确认播放视频
59
- */
60
- static get REQUEST_PLAY_VIDEO(): string;
61
- /**
62
- * 无操作超时
63
- */
64
- static get NO_OPERATION_TIMEOUT(): string;
65
- /**
66
- * 超过载入时间
67
- */
68
- static get LK_LOADING_TIMEOUT(): string;
69
- }