@lingoace/lingo-trtc-rtc 0.0.21 → 1.0.0-beta.1

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.
Binary file
Binary file
package/index.d.ts CHANGED
@@ -1,19 +1,32 @@
1
- import { LingoBaseRTC, DetectCameraParam, DetectCameraResult, ILingoCustomVideoTrack, ILingoRTC, ILingoRTCClient, LingoAceRTCInitParam, LingoCameraVideoTrackInitConfig, ILingoMicrophoneAudioTrack, ILingoCameraVideoTrack } from '@lingoace/lingo-base-rtc';
1
+ import {
2
+ LingoBaseRTC,
3
+ DetectCameraParam,
4
+ DetectCameraResult,
5
+ ILingoCustomVideoTrack,
6
+ ILingoRTC,
7
+ ILingoRTCClient,
8
+ LingoAceRTCInitParam,
9
+ LingoCameraVideoTrackInitConfig,
10
+ ILingoMicrophoneAudioTrack,
11
+ ILingoCameraVideoTrack
12
+ } from '@lingoace/lingo-base-rtc';
13
+
14
+ // 对外类型声明,构建时复制到产物目录作为 npm 包的 types 入口
2
15
  declare class LingoRTC extends LingoBaseRTC implements ILingoRTC {
3
- version: string;
4
- microphoneAudioTrack: ILingoMicrophoneAudioTrack | undefined;
5
- cameraVideoTrack: ILingoCameraVideoTrack | undefined;
6
- previewVideoTrack: ILingoCameraVideoTrack | undefined;
7
- init(param: LingoAceRTCInitParam): Promise<void>;
8
- release(): void;
9
- checkSystemRequirements(): Promise<boolean>;
10
- createClient(): Promise<ILingoRTCClient>;
11
- createCustomVideoTrack(cameraVideoTrack: ILingoCameraVideoTrack): Promise<ILingoCustomVideoTrack>;
12
- detectCamera(param: DetectCameraParam): Promise<DetectCameraResult>;
13
- processExternalMediaAEC(element: HTMLMediaElement): void;
14
- createMicrophoneAudioTrack(microphoneId?: string): Promise<ILingoMicrophoneAudioTrack>;
15
- createCameraVideoTrack(config: LingoCameraVideoTrackInitConfig): Promise<ILingoCameraVideoTrack>;
16
+ version: string;
17
+ microphoneAudioTrack: ILingoMicrophoneAudioTrack | undefined;
18
+ cameraVideoTrack: ILingoCameraVideoTrack | undefined;
19
+ previewVideoTrack: ILingoCameraVideoTrack | undefined;
20
+ /** assetsPath 为插件静态资源地址,不传时取产物同目录下的 assets */
21
+ init(param: LingoAceRTCInitParam & { assetsPath?: string }): Promise<void>;
22
+ release(): void;
23
+ checkSystemRequirements(): Promise<boolean>;
24
+ createClient(): Promise<ILingoRTCClient>;
25
+ createCustomVideoTrack(cameraVideoTrack: ILingoCameraVideoTrack): Promise<ILingoCustomVideoTrack>;
26
+ detectCamera(param: DetectCameraParam): Promise<DetectCameraResult>;
27
+ processExternalMediaAEC(element: HTMLMediaElement): void;
28
+ createMicrophoneAudioTrack(microphoneId?: string): Promise<ILingoMicrophoneAudioTrack>;
29
+ createCameraVideoTrack(config: LingoCameraVideoTrackInitConfig): Promise<ILingoCameraVideoTrack>;
16
30
  }
17
31
 
18
-
19
32
  export default LingoRTC;
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@lingoace/lingo-trtc-rtc",
3
- "version": "0.0.21",
3
+ "version": "1.0.0-beta.1",
4
4
  "main": "trtc-lingo.js",
5
5
  "types": "index.d.ts",
6
6
  "dependencies": {
7
- "@lingoace/lingo-base-rtc": "^0.0.9"
7
+ "@lingoace/lingo-base-rtc": "0.0.10"
8
8
  }
9
- }
9
+ }