@seastart/srtc-web-sdk 0.1.4 → 0.1.6

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.4",
3
+ "version": "0.1.6",
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
  */
@@ -402,10 +402,7 @@ 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
- protected postLeave(): void;
409
406
  leave(): Promise<void>;
410
407
  /**
411
408
  * 获取设备列表
@@ -726,15 +723,6 @@ export interface DisconnectEventData {
726
723
  /** 错误 */
727
724
  error?: any;
728
725
  }
729
- /**
730
- * 启用im选项
731
- */
732
- export interface EnableImParams {
733
- /** 线路号 */
734
- netID: string;
735
- /** 服务器分组id */
736
- sgID: string;
737
- }
738
726
  /**
739
727
  * web环境详情
740
728
  */
@@ -844,15 +832,6 @@ export interface ImMsgData {
844
832
  /** 发送者昵称 */
845
833
  name: string;
846
834
  }
847
- /**
848
- * 加入频道选项
849
- */
850
- export interface JoinParams {
851
- /** 线路号 */
852
- netID: string;
853
- /** 服务器分组id */
854
- sgID: string;
855
- }
856
835
  /**
857
836
  * 麦克风采集配置
858
837
  */
@@ -1057,10 +1036,10 @@ interface BaseUserInfo {
1057
1036
  version: string;
1058
1037
  /** 用户扩展属性 */
1059
1038
  props?: Record<string, any>;
1060
- /** 线路号 */
1061
- netid: string;
1062
- /** 服务器分组id */
1063
- sgid: string;
1039
+ /** 网络 */
1040
+ net: string;
1041
+ /** 服务分组 */
1042
+ sg: string;
1064
1043
  /** 更新时间 */
1065
1044
  updated_at: number;
1066
1045
  /** 频道名 */
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
  */
@@ -402,10 +402,7 @@ 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
- protected postLeave(): void;
409
406
  leave(): Promise<void>;
410
407
  /**
411
408
  * 获取设备列表
@@ -726,15 +723,6 @@ export interface DisconnectEventData {
726
723
  /** 错误 */
727
724
  error?: any;
728
725
  }
729
- /**
730
- * 启用im选项
731
- */
732
- export interface EnableImParams {
733
- /** 线路号 */
734
- netID: string;
735
- /** 服务器分组id */
736
- sgID: string;
737
- }
738
726
  /**
739
727
  * web环境详情
740
728
  */
@@ -844,15 +832,6 @@ export interface ImMsgData {
844
832
  /** 发送者昵称 */
845
833
  name: string;
846
834
  }
847
- /**
848
- * 加入频道选项
849
- */
850
- export interface JoinParams {
851
- /** 线路号 */
852
- netID: string;
853
- /** 服务器分组id */
854
- sgID: string;
855
- }
856
835
  /**
857
836
  * 麦克风采集配置
858
837
  */
@@ -1057,10 +1036,10 @@ interface BaseUserInfo {
1057
1036
  version: string;
1058
1037
  /** 用户扩展属性 */
1059
1038
  props?: Record<string, any>;
1060
- /** 线路号 */
1061
- netid: string;
1062
- /** 服务器分组id */
1063
- sgid: string;
1039
+ /** 网络 */
1040
+ net: string;
1041
+ /** 服务分组 */
1042
+ sg: string;
1064
1043
  /** 更新时间 */
1065
1044
  updated_at: number;
1066
1045
  /** 频道名 */