@hysc/meeting 1.6.19 → 1.6.20
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/esm/BMChat/BMChatVM.d.ts +24 -24
- package/esm/BMChat/BMMessageInfo.d.ts +27 -27
- package/esm/BMStream/BMSpeaker.d.ts +44 -44
- package/esm/BMStream/getHTMLMediaStreamOptions.d.ts +35 -35
- package/esm/bjy-common/function/execute.d.ts +9 -9
- package/esm/bjy-common/function/isNative.d.ts +1 -1
- package/esm/bjy-common/function/nextTick.d.ts +2 -2
- package/esm/bjy-common/function/toString.d.ts +1 -1
- package/esm/bjy-common/util/CustomEvent.d.ts +30 -30
- package/esm/bjy-common/util/Emitter.d.ts +57 -57
- package/esm/bjy-common/util/array.d.ts +96 -96
- package/esm/bjy-common/util/constant.d.ts +50 -50
- package/esm/bjy-common/util/is.d.ts +49 -49
- package/esm/bjy-common/util/keypath.d.ts +41 -41
- package/esm/bjy-common/util/logger.d.ts +42 -42
- package/esm/bjy-common/util/object.d.ts +83 -83
- package/esm/bjy-common/util/string.d.ts +102 -102
- package/esm/constants.d.ts +83 -83
- package/esm/index.js +1 -1
- package/esm/index.js.map +2 -2
- package/esm/util/emitter.d.ts +18 -18
- package/esm/util/roomUtils.d.ts +9 -9
- package/esm/util/util.d.ts +76 -76
- package/package.json +3 -3
- package/umd/BMChat/BMChatVM.d.ts +24 -0
- package/umd/BMChat/BMMessageInfo.d.ts +27 -0
- package/umd/BMStream/BMSpeaker.d.ts +44 -0
- package/umd/BMStream/getHTMLMediaStreamOptions.d.ts +35 -0
- package/umd/bjy-common/function/execute.d.ts +9 -0
- package/umd/bjy-common/function/isNative.d.ts +1 -0
- package/umd/bjy-common/function/nextTick.d.ts +2 -0
- package/umd/bjy-common/function/toString.d.ts +1 -0
- package/umd/bjy-common/util/CustomEvent.d.ts +30 -0
- package/umd/bjy-common/util/Emitter.d.ts +57 -0
- package/umd/bjy-common/util/array.d.ts +96 -0
- package/umd/bjy-common/util/constant.d.ts +50 -0
- package/umd/bjy-common/util/is.d.ts +49 -0
- package/umd/bjy-common/util/keypath.d.ts +41 -0
- package/umd/bjy-common/util/logger.d.ts +42 -0
- package/umd/bjy-common/util/object.d.ts +83 -0
- package/umd/bjy-common/util/string.d.ts +102 -0
- package/umd/constants.d.ts +83 -0
- package/umd/index.js +1 -1
- package/umd/util/emitter.d.ts +18 -0
- package/umd/util/roomUtils.d.ts +9 -0
- package/umd/util/util.d.ts +76 -0
|
@@ -1,102 +1,102 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 连字符转成驼峰
|
|
3
|
-
*
|
|
4
|
-
* @param str
|
|
5
|
-
* @return 驼峰格式的字符串
|
|
6
|
-
*/
|
|
7
|
-
export declare function camelize(str: string): string;
|
|
8
|
-
/**
|
|
9
|
-
* 驼峰转成连字符
|
|
10
|
-
*
|
|
11
|
-
* @param str
|
|
12
|
-
* @return 连字符格式的字符串
|
|
13
|
-
*/
|
|
14
|
-
export declare function hyphenate(str: string): string;
|
|
15
|
-
/**
|
|
16
|
-
* 首字母大写
|
|
17
|
-
*
|
|
18
|
-
* @param str
|
|
19
|
-
* @return
|
|
20
|
-
*/
|
|
21
|
-
export declare function capitalize(str: string): string;
|
|
22
|
-
/**
|
|
23
|
-
* 清除两侧空白符
|
|
24
|
-
*
|
|
25
|
-
* @param str
|
|
26
|
-
* @return 清除两侧空白符的字符串
|
|
27
|
-
*/
|
|
28
|
-
export declare function trim(str: any): string;
|
|
29
|
-
/**
|
|
30
|
-
* 截取字符串
|
|
31
|
-
*
|
|
32
|
-
* @param str
|
|
33
|
-
* @param start
|
|
34
|
-
* @param end
|
|
35
|
-
* @return
|
|
36
|
-
*/
|
|
37
|
-
export declare function slice(str: string, start: number, end?: number): string;
|
|
38
|
-
/**
|
|
39
|
-
* 获取子串的起始位置
|
|
40
|
-
*
|
|
41
|
-
* @param str
|
|
42
|
-
* @param part
|
|
43
|
-
* @param start
|
|
44
|
-
* @return
|
|
45
|
-
*/
|
|
46
|
-
export declare function indexOf(str: string, part: string, start?: number): number;
|
|
47
|
-
/**
|
|
48
|
-
* 获取子串的起始位置
|
|
49
|
-
*
|
|
50
|
-
* @param str
|
|
51
|
-
* @param part
|
|
52
|
-
* @param end
|
|
53
|
-
* @return
|
|
54
|
-
*/
|
|
55
|
-
export declare function lastIndexOf(str: string, part: string, end?: number): number;
|
|
56
|
-
/**
|
|
57
|
-
* str 是否以 part 开头
|
|
58
|
-
*
|
|
59
|
-
* @param str
|
|
60
|
-
* @param part
|
|
61
|
-
* @return
|
|
62
|
-
*/
|
|
63
|
-
export declare function startsWith(str: string, part: string): boolean;
|
|
64
|
-
/**
|
|
65
|
-
* str 是否以 part 结束
|
|
66
|
-
*
|
|
67
|
-
* @param str
|
|
68
|
-
* @param part
|
|
69
|
-
* @return
|
|
70
|
-
*/
|
|
71
|
-
export declare function endsWith(str: string, part: string): boolean;
|
|
72
|
-
/**
|
|
73
|
-
* 获取某个位置的字符
|
|
74
|
-
*/
|
|
75
|
-
export declare function charAt(str: string, index?: number): string;
|
|
76
|
-
/**
|
|
77
|
-
* 获取某个位置的字符编码
|
|
78
|
-
*/
|
|
79
|
-
export declare function codeAt(str: string, index?: number): number;
|
|
80
|
-
/**
|
|
81
|
-
* 大写格式
|
|
82
|
-
*/
|
|
83
|
-
export declare function upper(str: string): string;
|
|
84
|
-
/**
|
|
85
|
-
* 小写格式
|
|
86
|
-
*/
|
|
87
|
-
export declare function lower(str: string): string;
|
|
88
|
-
/**
|
|
89
|
-
* str 是否包含 part
|
|
90
|
-
*
|
|
91
|
-
* @param str
|
|
92
|
-
* @param part
|
|
93
|
-
* @return 是否包含
|
|
94
|
-
*/
|
|
95
|
-
export declare function has(str: string, part: string): boolean;
|
|
96
|
-
/**
|
|
97
|
-
* 判断长度大于 0 的字符串
|
|
98
|
-
*
|
|
99
|
-
* @param str
|
|
100
|
-
* @return
|
|
101
|
-
*/
|
|
102
|
-
export declare function falsy(str: any): boolean;
|
|
1
|
+
/**
|
|
2
|
+
* 连字符转成驼峰
|
|
3
|
+
*
|
|
4
|
+
* @param str
|
|
5
|
+
* @return 驼峰格式的字符串
|
|
6
|
+
*/
|
|
7
|
+
export declare function camelize(str: string): string;
|
|
8
|
+
/**
|
|
9
|
+
* 驼峰转成连字符
|
|
10
|
+
*
|
|
11
|
+
* @param str
|
|
12
|
+
* @return 连字符格式的字符串
|
|
13
|
+
*/
|
|
14
|
+
export declare function hyphenate(str: string): string;
|
|
15
|
+
/**
|
|
16
|
+
* 首字母大写
|
|
17
|
+
*
|
|
18
|
+
* @param str
|
|
19
|
+
* @return
|
|
20
|
+
*/
|
|
21
|
+
export declare function capitalize(str: string): string;
|
|
22
|
+
/**
|
|
23
|
+
* 清除两侧空白符
|
|
24
|
+
*
|
|
25
|
+
* @param str
|
|
26
|
+
* @return 清除两侧空白符的字符串
|
|
27
|
+
*/
|
|
28
|
+
export declare function trim(str: any): string;
|
|
29
|
+
/**
|
|
30
|
+
* 截取字符串
|
|
31
|
+
*
|
|
32
|
+
* @param str
|
|
33
|
+
* @param start
|
|
34
|
+
* @param end
|
|
35
|
+
* @return
|
|
36
|
+
*/
|
|
37
|
+
export declare function slice(str: string, start: number, end?: number): string;
|
|
38
|
+
/**
|
|
39
|
+
* 获取子串的起始位置
|
|
40
|
+
*
|
|
41
|
+
* @param str
|
|
42
|
+
* @param part
|
|
43
|
+
* @param start
|
|
44
|
+
* @return
|
|
45
|
+
*/
|
|
46
|
+
export declare function indexOf(str: string, part: string, start?: number): number;
|
|
47
|
+
/**
|
|
48
|
+
* 获取子串的起始位置
|
|
49
|
+
*
|
|
50
|
+
* @param str
|
|
51
|
+
* @param part
|
|
52
|
+
* @param end
|
|
53
|
+
* @return
|
|
54
|
+
*/
|
|
55
|
+
export declare function lastIndexOf(str: string, part: string, end?: number): number;
|
|
56
|
+
/**
|
|
57
|
+
* str 是否以 part 开头
|
|
58
|
+
*
|
|
59
|
+
* @param str
|
|
60
|
+
* @param part
|
|
61
|
+
* @return
|
|
62
|
+
*/
|
|
63
|
+
export declare function startsWith(str: string, part: string): boolean;
|
|
64
|
+
/**
|
|
65
|
+
* str 是否以 part 结束
|
|
66
|
+
*
|
|
67
|
+
* @param str
|
|
68
|
+
* @param part
|
|
69
|
+
* @return
|
|
70
|
+
*/
|
|
71
|
+
export declare function endsWith(str: string, part: string): boolean;
|
|
72
|
+
/**
|
|
73
|
+
* 获取某个位置的字符
|
|
74
|
+
*/
|
|
75
|
+
export declare function charAt(str: string, index?: number): string;
|
|
76
|
+
/**
|
|
77
|
+
* 获取某个位置的字符编码
|
|
78
|
+
*/
|
|
79
|
+
export declare function codeAt(str: string, index?: number): number;
|
|
80
|
+
/**
|
|
81
|
+
* 大写格式
|
|
82
|
+
*/
|
|
83
|
+
export declare function upper(str: string): string;
|
|
84
|
+
/**
|
|
85
|
+
* 小写格式
|
|
86
|
+
*/
|
|
87
|
+
export declare function lower(str: string): string;
|
|
88
|
+
/**
|
|
89
|
+
* str 是否包含 part
|
|
90
|
+
*
|
|
91
|
+
* @param str
|
|
92
|
+
* @param part
|
|
93
|
+
* @return 是否包含
|
|
94
|
+
*/
|
|
95
|
+
export declare function has(str: string, part: string): boolean;
|
|
96
|
+
/**
|
|
97
|
+
* 判断长度大于 0 的字符串
|
|
98
|
+
*
|
|
99
|
+
* @param str
|
|
100
|
+
* @return
|
|
101
|
+
*/
|
|
102
|
+
export declare function falsy(str: any): boolean;
|
package/esm/constants.d.ts
CHANGED
|
@@ -1,83 +1,83 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @name: constants
|
|
3
|
-
* @author: yangliye
|
|
4
|
-
* @date: 2022-04-27 10:39
|
|
5
|
-
* @description:constants
|
|
6
|
-
* @update: 2022-04-27 10:39
|
|
7
|
-
*/
|
|
8
|
-
/**
|
|
9
|
-
* 窗口排序常量
|
|
10
|
-
*/
|
|
11
|
-
export declare enum MODEL_SORT_ENUM {
|
|
12
|
-
SCREEN = 0,
|
|
13
|
-
MASTER = 1,
|
|
14
|
-
LOCAL = 2,
|
|
15
|
-
MANAGER_AUDIO_VIDEO = 3,
|
|
16
|
-
MANAGER_AUDIO = 4,
|
|
17
|
-
MANAGER_VIDEO = 5,
|
|
18
|
-
MANAGER = 6,
|
|
19
|
-
RAISE_AUDIO = 7,
|
|
20
|
-
RAISE_VIDEO = 8,
|
|
21
|
-
AUDIO_VIDEO = 9,
|
|
22
|
-
AUDIO = 10,
|
|
23
|
-
SIGNAL = 11,
|
|
24
|
-
VIDEO = 12,
|
|
25
|
-
OTHER = 13
|
|
26
|
-
}
|
|
27
|
-
export declare enum STREAM_TYPE {
|
|
28
|
-
/**
|
|
29
|
-
* 大流
|
|
30
|
-
*/
|
|
31
|
-
SUB_MAIN = 0,
|
|
32
|
-
/**
|
|
33
|
-
* 小流
|
|
34
|
-
*/
|
|
35
|
-
SINGLE = 1,
|
|
36
|
-
/**
|
|
37
|
-
* 屏幕共享流
|
|
38
|
-
*/
|
|
39
|
-
SHARE = 2,
|
|
40
|
-
/**
|
|
41
|
-
* 其他
|
|
42
|
-
*/
|
|
43
|
-
OTHER = 3
|
|
44
|
-
}
|
|
45
|
-
export declare const STREAM_SUFFIX_LOW = "LowQuality";
|
|
46
|
-
export declare const TOUPINGMA = "_toupingma";
|
|
47
|
-
export declare const STREAM_SUFFIX_SCREEN = "_screen";
|
|
48
|
-
export declare const MOBILE_STREAM_SUFFIX_SCREEN = "screen-";
|
|
49
|
-
export declare const SIGNAL_SUFFIX = "xinhao_";
|
|
50
|
-
export declare const IGNORE_USERS_PREFIX: string[];
|
|
51
|
-
export declare const STREAM_SUFFIX_HDMI = "_hdmi";
|
|
52
|
-
export declare const STREAM_CONTAIN_MIXER = "-mixer-";
|
|
53
|
-
export declare const STREAM_CONTAIN_RTMP_MIXER = "-rtmpmixer-";
|
|
54
|
-
/**
|
|
55
|
-
* 接受到传递过来的收到订阅信息的信令
|
|
56
|
-
*/
|
|
57
|
-
export declare const RECEIVE_SUBSCRIBE_MESSAGE = "sub-message";
|
|
58
|
-
/**
|
|
59
|
-
* 用户的排序改变
|
|
60
|
-
*/
|
|
61
|
-
export declare const USER_SORT_NUM_CHANGE = "user-sort-num-change";
|
|
62
|
-
/**
|
|
63
|
-
* 收到业务端bindDom的事件信息,主要是处理播放逻辑的功能
|
|
64
|
-
*/
|
|
65
|
-
export declare const BIND_ELEMENT = "bind-element";
|
|
66
|
-
/**
|
|
67
|
-
* 流监听到connect-error的处理
|
|
68
|
-
*/
|
|
69
|
-
export declare const HANDLE_STREAM_CONNECT_ERROR = "stream-connect-error";
|
|
70
|
-
/**
|
|
71
|
-
* 举手相关的处理
|
|
72
|
-
*/
|
|
73
|
-
export declare const RAISE_HAND = "raise-hand";
|
|
74
|
-
export declare const MANUAL_SUBSCRIPTION = "manual-subscription";
|
|
75
|
-
/**
|
|
76
|
-
* 手动订阅模式取消订阅流
|
|
77
|
-
*/
|
|
78
|
-
export declare const UNSUBSCRIBE_STREAM = "unsubscribe-stream";
|
|
79
|
-
/**
|
|
80
|
-
* 用户的嘉宾身份会发生变化,从嘉宾变为普通参会者,或者从普通参会者变为嘉宾
|
|
81
|
-
*/
|
|
82
|
-
export declare const CHANG_IS_GUEST = "change-is-guest";
|
|
83
|
-
export declare const BIND_BIG_ELEMENT = "bind-big-element";
|
|
1
|
+
/**
|
|
2
|
+
* @name: constants
|
|
3
|
+
* @author: yangliye
|
|
4
|
+
* @date: 2022-04-27 10:39
|
|
5
|
+
* @description:constants
|
|
6
|
+
* @update: 2022-04-27 10:39
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* 窗口排序常量
|
|
10
|
+
*/
|
|
11
|
+
export declare enum MODEL_SORT_ENUM {
|
|
12
|
+
SCREEN = 0,
|
|
13
|
+
MASTER = 1,
|
|
14
|
+
LOCAL = 2,
|
|
15
|
+
MANAGER_AUDIO_VIDEO = 3,
|
|
16
|
+
MANAGER_AUDIO = 4,
|
|
17
|
+
MANAGER_VIDEO = 5,
|
|
18
|
+
MANAGER = 6,
|
|
19
|
+
RAISE_AUDIO = 7,
|
|
20
|
+
RAISE_VIDEO = 8,
|
|
21
|
+
AUDIO_VIDEO = 9,
|
|
22
|
+
AUDIO = 10,
|
|
23
|
+
SIGNAL = 11,
|
|
24
|
+
VIDEO = 12,
|
|
25
|
+
OTHER = 13
|
|
26
|
+
}
|
|
27
|
+
export declare enum STREAM_TYPE {
|
|
28
|
+
/**
|
|
29
|
+
* 大流
|
|
30
|
+
*/
|
|
31
|
+
SUB_MAIN = 0,
|
|
32
|
+
/**
|
|
33
|
+
* 小流
|
|
34
|
+
*/
|
|
35
|
+
SINGLE = 1,
|
|
36
|
+
/**
|
|
37
|
+
* 屏幕共享流
|
|
38
|
+
*/
|
|
39
|
+
SHARE = 2,
|
|
40
|
+
/**
|
|
41
|
+
* 其他
|
|
42
|
+
*/
|
|
43
|
+
OTHER = 3
|
|
44
|
+
}
|
|
45
|
+
export declare const STREAM_SUFFIX_LOW = "LowQuality";
|
|
46
|
+
export declare const TOUPINGMA = "_toupingma";
|
|
47
|
+
export declare const STREAM_SUFFIX_SCREEN = "_screen";
|
|
48
|
+
export declare const MOBILE_STREAM_SUFFIX_SCREEN = "screen-";
|
|
49
|
+
export declare const SIGNAL_SUFFIX = "xinhao_";
|
|
50
|
+
export declare const IGNORE_USERS_PREFIX: string[];
|
|
51
|
+
export declare const STREAM_SUFFIX_HDMI = "_hdmi";
|
|
52
|
+
export declare const STREAM_CONTAIN_MIXER = "-mixer-";
|
|
53
|
+
export declare const STREAM_CONTAIN_RTMP_MIXER = "-rtmpmixer-";
|
|
54
|
+
/**
|
|
55
|
+
* 接受到传递过来的收到订阅信息的信令
|
|
56
|
+
*/
|
|
57
|
+
export declare const RECEIVE_SUBSCRIBE_MESSAGE = "sub-message";
|
|
58
|
+
/**
|
|
59
|
+
* 用户的排序改变
|
|
60
|
+
*/
|
|
61
|
+
export declare const USER_SORT_NUM_CHANGE = "user-sort-num-change";
|
|
62
|
+
/**
|
|
63
|
+
* 收到业务端bindDom的事件信息,主要是处理播放逻辑的功能
|
|
64
|
+
*/
|
|
65
|
+
export declare const BIND_ELEMENT = "bind-element";
|
|
66
|
+
/**
|
|
67
|
+
* 流监听到connect-error的处理
|
|
68
|
+
*/
|
|
69
|
+
export declare const HANDLE_STREAM_CONNECT_ERROR = "stream-connect-error";
|
|
70
|
+
/**
|
|
71
|
+
* 举手相关的处理
|
|
72
|
+
*/
|
|
73
|
+
export declare const RAISE_HAND = "raise-hand";
|
|
74
|
+
export declare const MANUAL_SUBSCRIPTION = "manual-subscription";
|
|
75
|
+
/**
|
|
76
|
+
* 手动订阅模式取消订阅流
|
|
77
|
+
*/
|
|
78
|
+
export declare const UNSUBSCRIBE_STREAM = "unsubscribe-stream";
|
|
79
|
+
/**
|
|
80
|
+
* 用户的嘉宾身份会发生变化,从嘉宾变为普通参会者,或者从普通参会者变为嘉宾
|
|
81
|
+
*/
|
|
82
|
+
export declare const CHANG_IS_GUEST = "change-is-guest";
|
|
83
|
+
export declare const BIND_BIG_ELEMENT = "bind-big-element";
|