@seastart/srtc-web-sdk 0.1.3 → 0.1.5

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seastart/srtc-web-sdk",
3
- "version": "0.1.3",
3
+ "version": "0.1.5",
4
4
  "description": "srtc sdk for web",
5
5
  "main": "srtc.js",
6
6
  "module": "srtc.mjs",
package/srtc.d.mts CHANGED
@@ -28,7 +28,7 @@ declare abstract class BaseSRTC {
28
28
  * 加入频道
29
29
  * @param token 加入频道token
30
30
  */
31
- join(token: string, params?: JoinParams): Promise<BaseChannelInfo>;
31
+ join(token: string): Promise<BaseChannelInfo>;
32
32
  /**
33
33
  * 离开频道
34
34
  */
@@ -82,7 +82,7 @@ declare abstract class BaseSRTC {
82
82
  * @param token 启用频道外消息token
83
83
  * @returns im会话sid
84
84
  */
85
- enableIm(token: string, params?: EnableImParams): Promise<string>;
85
+ enableIm(token: string): Promise<string>;
86
86
  /**
87
87
  * 关闭频道外消息
88
88
  */
@@ -306,7 +306,7 @@ export declare class LocalMicTrack extends LocalAudioTrack {
306
306
  /**
307
307
  * 停止采集
308
308
  */
309
- stopCapture(): Promise<void>;
309
+ stopCapture(): void;
310
310
  /**
311
311
  * 切换麦克风
312
312
  * @param deviceId
@@ -402,8 +402,6 @@ export declare class SRTC extends BaseSRTC {
402
402
  * @returns
403
403
  */
404
404
  getEnvInfo(): EnvWebInfo;
405
- protected getStoredDeviceId(): string;
406
- protected getDeviceType(): DeviceType;
407
405
  constructor(initParams: SdkInitParams);
408
406
  leave(): Promise<void>;
409
407
  /**
@@ -725,15 +723,6 @@ export interface DisconnectEventData {
725
723
  /** 错误 */
726
724
  error?: any;
727
725
  }
728
- /**
729
- * 启用im选项
730
- */
731
- export interface EnableImParams {
732
- /** 线路号 */
733
- netID: string;
734
- /** 服务器分组id */
735
- sgID: string;
736
- }
737
726
  /**
738
727
  * web环境详情
739
728
  */
@@ -843,15 +832,6 @@ export interface ImMsgData {
843
832
  /** 发送者昵称 */
844
833
  name: string;
845
834
  }
846
- /**
847
- * 加入频道选项
848
- */
849
- export interface JoinParams {
850
- /** 线路号 */
851
- netID: string;
852
- /** 服务器分组id */
853
- sgID: string;
854
- }
855
835
  /**
856
836
  * 麦克风采集配置
857
837
  */
package/srtc.d.ts CHANGED
@@ -28,7 +28,7 @@ declare abstract class BaseSRTC {
28
28
  * 加入频道
29
29
  * @param token 加入频道token
30
30
  */
31
- join(token: string, params?: JoinParams): Promise<BaseChannelInfo>;
31
+ join(token: string): Promise<BaseChannelInfo>;
32
32
  /**
33
33
  * 离开频道
34
34
  */
@@ -82,7 +82,7 @@ declare abstract class BaseSRTC {
82
82
  * @param token 启用频道外消息token
83
83
  * @returns im会话sid
84
84
  */
85
- enableIm(token: string, params?: EnableImParams): Promise<string>;
85
+ enableIm(token: string): Promise<string>;
86
86
  /**
87
87
  * 关闭频道外消息
88
88
  */
@@ -306,7 +306,7 @@ export declare class LocalMicTrack extends LocalAudioTrack {
306
306
  /**
307
307
  * 停止采集
308
308
  */
309
- stopCapture(): Promise<void>;
309
+ stopCapture(): void;
310
310
  /**
311
311
  * 切换麦克风
312
312
  * @param deviceId
@@ -402,8 +402,6 @@ export declare class SRTC extends BaseSRTC {
402
402
  * @returns
403
403
  */
404
404
  getEnvInfo(): EnvWebInfo;
405
- protected getStoredDeviceId(): string;
406
- protected getDeviceType(): DeviceType;
407
405
  constructor(initParams: SdkInitParams);
408
406
  leave(): Promise<void>;
409
407
  /**
@@ -725,15 +723,6 @@ export interface DisconnectEventData {
725
723
  /** 错误 */
726
724
  error?: any;
727
725
  }
728
- /**
729
- * 启用im选项
730
- */
731
- export interface EnableImParams {
732
- /** 线路号 */
733
- netID: string;
734
- /** 服务器分组id */
735
- sgID: string;
736
- }
737
726
  /**
738
727
  * web环境详情
739
728
  */
@@ -843,15 +832,6 @@ export interface ImMsgData {
843
832
  /** 发送者昵称 */
844
833
  name: string;
845
834
  }
846
- /**
847
- * 加入频道选项
848
- */
849
- export interface JoinParams {
850
- /** 线路号 */
851
- netID: string;
852
- /** 服务器分组id */
853
- sgID: string;
854
- }
855
835
  /**
856
836
  * 麦克风采集配置
857
837
  */