@rongcloud/plugin-rtc 5.4.6-alpha.1 → 5.4.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/dist/core/webrtc/sdp/ASdpBuilder.d.ts +1 -0
- package/dist/core/webrtc/sdp/SDPUtils.d.ts +60 -0
- package/dist/index.d.ts +3 -3
- package/dist/index.esm.js +15 -19143
- package/dist/index.js +15 -19175
- package/dist/index.umd.js +15 -19179
- package/package.json +2 -2
|
@@ -12,6 +12,7 @@ export default abstract class ASdpBuilder {
|
|
|
12
12
|
protected SDPHeader: string;
|
|
13
13
|
protected videoStreams: string[];
|
|
14
14
|
protected audioStreams: string[];
|
|
15
|
+
static KBitrate: number;
|
|
15
16
|
get videoSdps(): string[];
|
|
16
17
|
get audioSdps(): string[];
|
|
17
18
|
constructor(SDP: string, type: ISdpSemantics);
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
interface ssrcMedia {
|
|
2
|
+
ssrc: number;
|
|
3
|
+
attribute?: string;
|
|
4
|
+
value?: string;
|
|
5
|
+
}
|
|
6
|
+
interface Msid {
|
|
7
|
+
stream: string;
|
|
8
|
+
track: string;
|
|
9
|
+
}
|
|
10
|
+
interface mline {
|
|
11
|
+
kind: string;
|
|
12
|
+
port: number;
|
|
13
|
+
protocol: string;
|
|
14
|
+
fmt: string;
|
|
15
|
+
}
|
|
16
|
+
export default class SDPUtils {
|
|
17
|
+
static splitSections(blob: string): string[];
|
|
18
|
+
/**
|
|
19
|
+
* 它需要一个 SDP 文本块并返回一个仅包含媒体部分的 SDP 文本数组
|
|
20
|
+
* @param {string} blob - 您要解析的 SDP 字符串。
|
|
21
|
+
* @returns 字符串数组。
|
|
22
|
+
*/
|
|
23
|
+
static getMediaSections(blob: string): string[];
|
|
24
|
+
static parseExtmap(line: string): {
|
|
25
|
+
id: number;
|
|
26
|
+
direction: string;
|
|
27
|
+
uri: string;
|
|
28
|
+
};
|
|
29
|
+
static splitLines(blob: string): string[];
|
|
30
|
+
/**
|
|
31
|
+
* 它接受一个媒体部分并返回一个对象,其中包含媒体部分的种类、端口、协议和格式
|
|
32
|
+
* @param {string} mediaSection - SDP的媒体部分。
|
|
33
|
+
* @returns 具有以下属性的对象:
|
|
34
|
+
* kind:媒体的类型(音频、视频等)
|
|
35
|
+
* 端口:端口号
|
|
36
|
+
* 协议:使用的协议
|
|
37
|
+
* fmt:媒体的格式
|
|
38
|
+
*/
|
|
39
|
+
static parseMLine(mediaSection: string): mline;
|
|
40
|
+
static matchPrefix(blob: string, prefix: string): string[];
|
|
41
|
+
/**
|
|
42
|
+
* 它从 SDP 媒体部分解析 msid 属性
|
|
43
|
+
* @param {string} mediaSection - SDP的媒体部分。
|
|
44
|
+
* @returns 具有两个属性的对象:流和轨道。
|
|
45
|
+
*/
|
|
46
|
+
static parseMsid(mediaSection: string): Msid;
|
|
47
|
+
/**
|
|
48
|
+
* 它接受一个字符串并返回一个对象
|
|
49
|
+
* @param {string} line - 我们正在解析的 SDP 行。
|
|
50
|
+
*/
|
|
51
|
+
static parseSsrcMedia(line: string): ssrcMedia;
|
|
52
|
+
/**
|
|
53
|
+
* 它从 SDP 的媒体部分返回中间值
|
|
54
|
+
* @param {string} mediaSection - SDP的媒体部分。
|
|
55
|
+
* @returns 媒体部分的中间。
|
|
56
|
+
*/
|
|
57
|
+
static getMid(mediaSection: string): string | undefined;
|
|
58
|
+
}
|
|
59
|
+
export {};
|
|
60
|
+
//# sourceMappingURL=SDPUtils.d.ts.map
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* RCRTC - v5.4.6
|
|
3
|
-
* CommitId -
|
|
4
|
-
*
|
|
2
|
+
* RCRTC - v5.4.6
|
|
3
|
+
* CommitId - 94eaaf8b42fa1e563b6c6408fffee2eeaea15e7a
|
|
4
|
+
* Tue Aug 23 2022 22:25:57 GMT+0800 (China Standard Time)
|
|
5
5
|
* ©2020 RongCloud, Inc. All rights reserved.
|
|
6
6
|
*/
|
|
7
7
|
import { EventEmitter, RTCMode, IRuntime, RTCPluginContext, IJoinRTCRoomData, IReceivedMessage, ErrorCode, RTCJoinType, IRTCUserData, KVString, IServerRTCRoomEntry, LogLevel, IRTCJoinedInfo, IPluginGenerator } from '@rongcloud/engine';
|