larksr_websdk 3.2.3 → 3.2.4

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.
@@ -1,5 +1,5 @@
1
1
  import 'core-js/stable/symbol';
2
- import { LarkSR, CreateLarkSRClientFromeAPI, CreateLarkSRClientFromeUrl, LarkEventType, LarkSRClientEvent, AppliParams, LoadAppliParamsFromUrl, AppliParamsUtils, LoadAppliParamsStartAppInfo, EventBase, API, Operation, Capabilities, ScaleMode, CloudLark, FullScreen, LockPointer, KEYMAP, ILarkSRConfig, PlayerModeType, UserType, LarkSREvent } from "./larksr";
2
+ import { LarkSR, CreateLarkSRClientFromeAPI, CreateLarkSRClientFromeUrl, LarkEventType, LarkSRClientEvent, AppliParams, LoadAppliParamsFromUrl, AppliParamsUtils, LoadAppliParamsStartAppInfo, EventBase, API, Operation, Capabilities, ScaleMode, CloudLark, FullScreen, LockPointer, ILarkSRConfig, PlayerModeType, UserType, LarkSREvent } from "./larksr";
3
3
  declare const _default: {
4
4
  LarkSR: typeof LarkSR;
5
5
  CreateLarkSRClientFromeAPI: typeof CreateLarkSRClientFromeAPI;
@@ -16,6 +16,9 @@ declare const _default: {
16
16
  FullScreen: typeof FullScreen;
17
17
  LockPointer: typeof LockPointer;
18
18
  Operation: typeof Operation;
19
+ LarkSRClientEvent: typeof LarkSRClientEvent;
20
+ LarkEventType: typeof LarkEventType;
21
+ KEYMAP: import("./operation/keymap").VritualKeyMapOptions;
19
22
  };
20
23
  export default _default;
21
- export { LarkEventType, LarkSRClientEvent, KEYMAP, ILarkSRConfig, PlayerModeType, UserType, LarkSREvent, };
24
+ export { ILarkSRConfig, PlayerModeType, UserType, LarkSREvent, };
@@ -1,4 +1,4 @@
1
- export declare const enum LarkEventType {
1
+ export declare enum LarkEventType {
2
2
  LK_WEB_CLIENT_LOAD_SUCCESS = 1,
3
3
  LK_API_ENTERAPPLI_SUCCESS = 10,
4
4
  LK_API_ENTERAPPLI_FAILED = 11,
@@ -10,7 +10,7 @@ import API from './api';
10
10
  import ScreenState from './screen_state';
11
11
  import Operation from './operation/operation';
12
12
  import { CloudLark } from './protobuf/cloudlark';
13
- import { KEYMAP } from './operation/keymap';
13
+ import { KEYMAP, VirtualKey } from './operation/keymap';
14
14
  import FullScreen from './utils/full_screen';
15
15
  import LockPointer from './utils/lock_pointer';
16
16
  import ScaleMode from './utils/scale_mode';
@@ -45,7 +45,7 @@ declare const enum UserType {
45
45
  /**
46
46
  * LarkSR 实例会发出的事件
47
47
  */
48
- declare const enum LarkSRClientEvent {
48
+ declare enum LarkSRClientEvent {
49
49
  /**
50
50
  * 连接渲染服务器成功 .
51
51
  */
@@ -333,7 +333,7 @@ declare class LarkSR extends EventBase<LarkSRClientEvent, LarkSREvent> {
333
333
  private _fullScreen;
334
334
  get lockPointer(): LockPointer;
335
335
  private _lockPointer;
336
- private view;
336
+ private _view;
337
337
  /**
338
338
  * 视频元素
339
339
  */
@@ -455,4 +455,4 @@ declare class LarkSR extends EventBase<LarkSRClientEvent, LarkSREvent> {
455
455
  private onOperationTimeout;
456
456
  private onOperationInput;
457
457
  }
458
- export { LarkSR, ILarkSRConfig, PlayerModeType, UserType, LarkSREvent, LarkEventType, LarkSRClientEvent, AppliParams, AppliParamsUtils, LoadAppliParamsFromUrl, LoadAppliParamsStartAppInfo, EventBase, API, Operation, Capabilities, ScaleMode, KEYMAP, CloudLark, FullScreen, LockPointer, };
458
+ export { LarkSR, ILarkSRConfig, PlayerModeType, UserType, LarkSREvent, LarkEventType, LarkSRClientEvent, AppliParams, AppliParamsUtils, LoadAppliParamsFromUrl, LoadAppliParamsStartAppInfo, EventBase, API, Operation, Capabilities, ScaleMode, VirtualKey, KEYMAP, CloudLark, FullScreen, LockPointer, };
@@ -8,13 +8,17 @@
8
8
  * TODO fix:atl + tab, f5,ctr,bug
9
9
  * REMOVE F11
10
10
  */
11
- interface Key {
11
+ export interface IVirtualKey {
12
12
  scancode: number;
13
13
  vkey: number;
14
14
  unicode: number;
15
15
  }
16
- declare type tplotOptions = {
17
- [key: string]: Key;
16
+ export declare class VirtualKey implements IVirtualKey {
17
+ scancode: number;
18
+ vkey: number;
19
+ unicode: number;
20
+ }
21
+ export declare type VritualKeyMapOptions = {
22
+ [key: string]: VirtualKey;
18
23
  };
19
- export declare const KEYMAP: tplotOptions;
20
- export {};
24
+ export declare const KEYMAP: VritualKeyMapOptions;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "larksr_websdk",
3
- "version": "3.2.3",
3
+ "version": "3.2.4",
4
4
  "description": "larksr websdk. http://www.pingxingyun.com",
5
5
  "keywords": [
6
6
  "pingxingyun",
@@ -30,7 +30,8 @@
30
30
  "core-js": "^3.18.1",
31
31
  "crypto-js": "^4.1.1",
32
32
  "protobufjs": "^6.11.2",
33
- "webrtc-adapter": "^8.1.0"
33
+ "webrtc-adapter": "^8.1.0",
34
+ "weixin-js-sdk": "^1.6.0"
34
35
  },
35
36
  "devDependencies": {
36
37
  "@babel/core": "^7.15.5",