Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
M
mediasoup
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
聂卓夫
mediasoup
Commits
201fbc11
提交
201fbc11
authored
2月 27, 2020
作者:
Iñaki Baz Castillo
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
TypeScript: use type instead of interface when possible
上级
bec30c09
显示空白字符变更
内嵌
并排
正在显示
44 个修改的文件
包含
172 行增加
和
166 行删除
+172
-166
Consumer.d.ts
lib/Consumer.d.ts
+10
-10
Consumer.d.ts.map
lib/Consumer.d.ts.map
+2
-2
DataConsumer.d.ts
lib/DataConsumer.d.ts
+4
-4
DataConsumer.d.ts.map
lib/DataConsumer.d.ts.map
+2
-2
DataProducer.d.ts
lib/DataProducer.d.ts
+4
-4
DataProducer.d.ts.map
lib/DataProducer.d.ts.map
+2
-2
PipeTransport.d.ts
lib/PipeTransport.d.ts
+6
-6
PipeTransport.d.ts.map
lib/PipeTransport.d.ts.map
+2
-2
PipeTransport.js
lib/PipeTransport.js
+1
-1
PlainRtpTransport.d.ts
lib/PlainRtpTransport.d.ts
+4
-4
PlainRtpTransport.d.ts.map
lib/PlainRtpTransport.d.ts.map
+2
-2
Producer.d.ts
lib/Producer.d.ts
+10
-10
Producer.d.ts.map
lib/Producer.d.ts.map
+2
-2
Router.d.ts
lib/Router.d.ts
+6
-6
Router.d.ts.map
lib/Router.d.ts.map
+2
-2
RtpParameters.d.ts
lib/RtpParameters.d.ts
+19
-18
RtpParameters.d.ts.map
lib/RtpParameters.d.ts.map
+2
-2
SctpParameters.d.ts
lib/SctpParameters.d.ts
+9
-8
SctpParameters.d.ts.map
lib/SctpParameters.d.ts.map
+2
-2
WebRtcTransport.d.ts
lib/WebRtcTransport.d.ts
+12
-12
WebRtcTransport.d.ts.map
lib/WebRtcTransport.d.ts.map
+2
-2
Worker.d.ts
lib/Worker.d.ts
+4
-4
Worker.d.ts.map
lib/Worker.d.ts.map
+2
-2
ortc.d.ts
lib/ortc.d.ts
+2
-2
ortc.d.ts.map
lib/ortc.d.ts.map
+2
-2
scalabilityModes.d.ts
lib/scalabilityModes.d.ts
+3
-2
scalabilityModes.d.ts.map
lib/scalabilityModes.d.ts.map
+2
-2
types.d.ts
lib/types.d.ts
+2
-0
types.d.ts.map
lib/types.d.ts.map
+2
-2
Channel.ts
src/Channel.ts
+1
-1
Consumer.ts
src/Consumer.ts
+5
-5
DataConsumer.ts
src/DataConsumer.ts
+2
-2
DataProducer.ts
src/DataProducer.ts
+2
-2
PipeTransport.ts
src/PipeTransport.ts
+4
-4
PlainRtpTransport.ts
src/PlainRtpTransport.ts
+2
-2
Producer.ts
src/Producer.ts
+5
-5
Router.ts
src/Router.ts
+3
-3
RtpParameters.ts
src/RtpParameters.ts
+9
-9
SctpParameters.ts
src/SctpParameters.ts
+4
-4
WebRtcTransport.ts
src/WebRtcTransport.ts
+6
-6
Worker.ts
src/Worker.ts
+2
-2
ortc.ts
src/ortc.ts
+1
-1
scalabilityModes.ts
src/scalabilityModes.ts
+1
-1
types.ts
src/types.ts
+1
-0
没有找到文件。
lib/Consumer.d.ts
浏览文件 @
201fbc11
...
@@ -2,7 +2,7 @@ import { EnhancedEventEmitter } from './EnhancedEventEmitter';
...
@@ -2,7 +2,7 @@ import { EnhancedEventEmitter } from './EnhancedEventEmitter';
import
{
Channel
}
from
'./Channel'
;
import
{
Channel
}
from
'./Channel'
;
import
{
ProducerStat
}
from
'./Producer'
;
import
{
ProducerStat
}
from
'./Producer'
;
import
{
MediaKind
,
RtpCapabilities
,
RtpParameters
}
from
'./RtpParameters'
;
import
{
MediaKind
,
RtpCapabilities
,
RtpParameters
}
from
'./RtpParameters'
;
export
interface
ConsumerOptions
{
export
declare
type
ConsumerOptions
=
{
/**
/**
* The id of the Producer to consume.
* The id of the Producer to consume.
*/
*/
...
@@ -35,7 +35,7 @@ export interface ConsumerOptions {
...
@@ -35,7 +35,7 @@ export interface ConsumerOptions {
* Custom application data.
* Custom application data.
*/
*/
appData
?:
any
;
appData
?:
any
;
}
}
;
/**
/**
* Valid types for 'trace' event.
* Valid types for 'trace' event.
*/
*/
...
@@ -43,7 +43,7 @@ export declare type ConsumerTraceEventType = 'rtp' | 'keyframe' | 'nack' | 'pli'
...
@@ -43,7 +43,7 @@ export declare type ConsumerTraceEventType = 'rtp' | 'keyframe' | 'nack' | 'pli'
/**
/**
* 'trace' event data.
* 'trace' event data.
*/
*/
export
interface
ConsumerTraceEventData
{
export
declare
type
ConsumerTraceEventData
=
{
/**
/**
* Trace type.
* Trace type.
*/
*/
...
@@ -60,8 +60,8 @@ export interface ConsumerTraceEventData {
...
@@ -60,8 +60,8 @@ export interface ConsumerTraceEventData {
* Per type information.
* Per type information.
*/
*/
info
:
any
;
info
:
any
;
}
}
;
export
interface
ConsumerScore
{
export
declare
type
ConsumerScore
=
{
/**
/**
* The score of the RTP stream of the consumer.
* The score of the RTP stream of the consumer.
*/
*/
...
@@ -70,8 +70,8 @@ export interface ConsumerScore {
...
@@ -70,8 +70,8 @@ export interface ConsumerScore {
* The score of the currently selected RTP stream of the producer.
* The score of the currently selected RTP stream of the producer.
*/
*/
producerScore
:
number
;
producerScore
:
number
;
}
}
;
export
interface
ConsumerLayers
{
export
declare
type
ConsumerLayers
=
{
/**
/**
* The spatial layer index (from 0 to N).
* The spatial layer index (from 0 to N).
*/
*/
...
@@ -80,8 +80,8 @@ export interface ConsumerLayers {
...
@@ -80,8 +80,8 @@ export interface ConsumerLayers {
* The temporal layer index (from 0 to N).
* The temporal layer index (from 0 to N).
*/
*/
temporalLayer
?:
number
;
temporalLayer
?:
number
;
}
}
;
export
interface
ConsumerStat
{
export
declare
type
ConsumerStat
=
{
type
:
string
;
type
:
string
;
timestamp
:
number
;
timestamp
:
number
;
ssrc
:
number
;
ssrc
:
number
;
...
@@ -102,7 +102,7 @@ export interface ConsumerStat {
...
@@ -102,7 +102,7 @@ export interface ConsumerStat {
byteCount
:
number
;
byteCount
:
number
;
bitrate
:
number
;
bitrate
:
number
;
roundTripTime
?:
number
;
roundTripTime
?:
number
;
}
}
;
/**
/**
* Consumer type.
* Consumer type.
*/
*/
...
...
lib/Consumer.d.ts.map
浏览文件 @
201fbc11
{"version":3,"file":"Consumer.d.ts","sourceRoot":"","sources":["../src/Consumer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC1C,OAAO,EACN,SAAS,EACT,eAAe,EACf,aAAa,EACb,MAAM,iBAAiB,CAAC;AAEzB,MAAM,WAAW,eAAe;IAE/B;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,eAAe,CAAC,EAAE,eAAe,CAAC;IAElC;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IAEjB;;;OAGG;IACH,eAAe,CAAC,EAAE,cAAc,CAAC;IAEjC;;OAEG;IACH,OAAO,CAAC,EAAE,GAAG,CAAC;CACd;AAED;;GAEG;AACH,oBAAY,sBAAsB,GAAG,KAAK,GAAG,UAAU,GAAG,MAAM,GAAG,KAAK,GAAG,KAAK,CAAC;AAEjF;;GAEG;AACH,MAAM,WAAW,sBAAsB;IAEtC;;OAEG;IACH,IAAI,EAAE,sBAAsB,CAAC;IAE7B;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,SAAS,EAAE,IAAI,GAAG,KAAK,CAAC;IAExB;;OAEG;IACH,IAAI,EAAE,GAAG,CAAC;CACV;AAED,MAAM,WAAW,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,GAAG,OAAO,CAAC,IAAI,CAAC;IAYlD;;OAEG;IACG,aAAa,IAAI,OAAO,CAAC,IAAI,CAAC;IAYpC;;OAEG;IACG,eAAe,IAAI,OAAO,CAAC,IAAI,CAAC;IAOtC;;OAEG;IACG,gBAAgB,CAAC,KAAK,GAAE,sBAAsB,EAAO,GAAG,OAAO,CAAC,IAAI,CAAC;IAU3E,OAAO,CAAC,0BAA0B;CA4GlC"}
\ No newline at end of file
\ No newline at end of file
lib/DataConsumer.d.ts
浏览文件 @
201fbc11
import
{
EnhancedEventEmitter
}
from
'./EnhancedEventEmitter'
;
import
{
EnhancedEventEmitter
}
from
'./EnhancedEventEmitter'
;
import
{
Channel
}
from
'./Channel'
;
import
{
Channel
}
from
'./Channel'
;
import
{
SctpStreamParameters
}
from
'./SctpParameters'
;
import
{
SctpStreamParameters
}
from
'./SctpParameters'
;
export
interface
DataConsumerOptions
{
export
declare
type
DataConsumerOptions
=
{
/**
/**
* The id of the DataProducer to consume.
* The id of the DataProducer to consume.
*/
*/
...
@@ -10,15 +10,15 @@ export interface DataConsumerOptions {
...
@@ -10,15 +10,15 @@ export interface DataConsumerOptions {
* Custom application data.
* Custom application data.
*/
*/
appData
?:
any
;
appData
?:
any
;
}
}
;
export
interface
DataConsumerStat
{
export
declare
type
DataConsumerStat
=
{
type
:
string
;
type
:
string
;
timestamp
:
number
;
timestamp
:
number
;
label
:
string
;
label
:
string
;
protocol
:
string
;
protocol
:
string
;
messagesSent
:
number
;
messagesSent
:
number
;
bytesSent
:
number
;
bytesSent
:
number
;
}
}
;
export
declare
class
DataConsumer
extends
EnhancedEventEmitter
{
export
declare
class
DataConsumer
extends
EnhancedEventEmitter
{
private
readonly
_internal
;
private
readonly
_internal
;
private
readonly
_data
;
private
readonly
_data
;
...
...
lib/DataConsumer.d.ts.map
浏览文件 @
201fbc11
{"version":3,"file":"DataConsumer.d.ts","sourceRoot":"","sources":["../src/DataConsumer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,o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AAC,QAAQ,CAAC,CAAM;IAGhC,OAAO,CAAC,QAAQ,CAAC,SAAS,CAA8B;IAExD;;;;;;OAMG;gBAEF,EACC,QAAQ,EACR,IAAI,EACJ,OAAO,EACP,OAAO,EACP,EACD;QACC,QAAQ,EAAE,GAAG,CAAC;QACd,IAAI,EAAE,GAAG,CAAC;QACV,OAAO,EAAE,OAAO,CAAC;QACjB,OAAO,EAAE,GAAG,CAAC;KACb;IAeF;;OAEG;IACH,IAAI,EAAE,IAAI,MAAM,CAGf;IAED;;OAEG;IACH,IAAI,cAAc,IAAI,MAAM,CAG3B;IAED;;OAEG;IACH,IAAI,MAAM,IAAI,OAAO,CAGpB;IAED;;OAEG;IACH,IAAI,oBAAoB,IAAI,oBAAoB,CAG/C;IAED;;OAEG;IACH,IAAI,KAAK,IAAI,MAAM,CAGlB;IAED;;OAEG;IACH,IAAI,QAAQ,IAAI,MAAM,CAGrB;IAED;;OAEG;IACH,IAAI,OAAO,IAAI,GAAG,CAGjB;IAED;;OAEG;IACH,IAAI,OAAO,CAAC,OAAO,EAAE,GAAG,EAGvB;IAED;;;;OAIG;IACH,IAAI,QAAQ,IAAI,oBAAoB,CAGnC;IAED;;OAEG;IACH,KAAK,IAAI,IAAI;IAqBb;;;;OAIG;IACH,eAAe,IAAI,IAAI;IAkBvB;;OAEG;IACG,IAAI,IAAI,OAAO,CAAC,GAAG,CAAC;IAO1B;;OAEG;IACG,QAAQ,IAAI,OAAO,CAAC,gBAAgB,EAAE,CAAC;IAO7C,OAAO,CAAC,0BAA0B;CAgClC"}
\ No newline at end of file
\ No newline at end of file
lib/DataProducer.d.ts
浏览文件 @
201fbc11
import
{
EnhancedEventEmitter
}
from
'./EnhancedEventEmitter'
;
import
{
EnhancedEventEmitter
}
from
'./EnhancedEventEmitter'
;
import
{
Channel
}
from
'./Channel'
;
import
{
Channel
}
from
'./Channel'
;
import
{
SctpStreamParameters
}
from
'./SctpParameters'
;
import
{
SctpStreamParameters
}
from
'./SctpParameters'
;
export
interface
DataProducerOptions
{
export
declare
type
DataProducerOptions
=
{
/**
/**
* DataProducer id (just for Router.pipeToRouter() method).
* DataProducer id (just for Router.pipeToRouter() method).
*/
*/
...
@@ -22,15 +22,15 @@ export interface DataProducerOptions {
...
@@ -22,15 +22,15 @@ export interface DataProducerOptions {
* Custom application data.
* Custom application data.
*/
*/
appData
?:
any
;
appData
?:
any
;
}
}
;
export
interface
DataProducerStat
{
export
declare
type
DataProducerStat
=
{
type
:
string
;
type
:
string
;
timestamp
:
number
;
timestamp
:
number
;
label
:
string
;
label
:
string
;
protocol
:
string
;
protocol
:
string
;
messagesReceived
:
number
;
messagesReceived
:
number
;
bytesReceived
:
number
;
bytesReceived
:
number
;
}
}
;
export
declare
class
DataProducer
extends
EnhancedEventEmitter
{
export
declare
class
DataProducer
extends
EnhancedEventEmitter
{
private
readonly
_internal
;
private
readonly
_internal
;
private
readonly
_data
;
private
readonly
_data
;
...
...
lib/DataProducer.d.ts.map
浏览文件 @
201fbc11
{"version":3,"file":"DataProducer.d.ts","sourceRoot":"","sources":["../src/DataProducer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAExD,MAAM,WAAW,mBAAmB;IAEnC;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ;;OAEG;IACH,oBAAoB,EAAE,oBAAoB,CAAC;IAE3C;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,OAAO,CAAC,EAAE,GAAG,CAAC;CACd;AAED,MAAM,WAAW,gBAAgB;IAEhC,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;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F;;OAEG;IACH,IAAI,EAAE,IAAI,MAAM,CAGf;IAED;;OAEG;IACH,IAAI,MAAM,IAAI,OAAO,CAGpB;IAED;;OAEG;IACH,IAAI,oBAAoB,IAAI,oBAAoB,CAG/C;IAED;;OAEG;IACH,IAAI,KAAK,IAAI,MAAM,CAGlB;IAED;;OAEG;IACH,IAAI,QAAQ,IAAI,MAAM,CAGrB;IAED;;OAEG;IACH,IAAI,OAAO,IAAI,GAAG,CAGjB;IAED;;OAEG;IACH,IAAI,OAAO,CAAC,OAAO,EAAE,GAAG,EAGvB;IAED;;;;OAIG;IACH,IAAI,QAAQ,IAAI,oBAAoB,CAGnC;IAED;;OAEG;IACH,KAAK,IAAI,IAAI;IAqBb;;;;OAIG;IACH,eAAe,IAAI,IAAI;IAevB;;OAEG;IACG,IAAI,IAAI,OAAO,CAAC,GAAG,CAAC;IAO1B;;OAEG;IACG,QAAQ,IAAI,OAAO,CAAC,gBAAgB,EAAE,CAAC;IAO7C,OAAO,CAAC,0BAA0B;CAIlC"}
\ No newline at end of file
\ No newline at end of file
lib/PipeTransport.d.ts
浏览文件 @
201fbc11
...
@@ -2,7 +2,7 @@ import { EnhancedEventEmitter } from './EnhancedEventEmitter';
...
@@ -2,7 +2,7 @@ import { EnhancedEventEmitter } from './EnhancedEventEmitter';
import
{
Transport
,
TransportListenIp
,
TransportTuple
,
SctpState
}
from
'./Transport'
;
import
{
Transport
,
TransportListenIp
,
TransportTuple
,
SctpState
}
from
'./Transport'
;
import
{
Consumer
,
ConsumerOptions
}
from
'./Consumer'
;
import
{
Consumer
,
ConsumerOptions
}
from
'./Consumer'
;
import
{
SctpParameters
,
NumSctpStreams
}
from
'./SctpParameters'
;
import
{
SctpParameters
,
NumSctpStreams
}
from
'./SctpParameters'
;
export
interface
PipeTransportOptions
{
export
declare
type
PipeTransportOptions
=
{
/**
/**
* Listening IP address.
* Listening IP address.
*/
*/
...
@@ -29,15 +29,15 @@ export interface PipeTransportOptions {
...
@@ -29,15 +29,15 @@ export interface PipeTransportOptions {
/**
/**
* Enable SRTP. Useful to protect the RTP and RTCP traffic if both Routers
* Enable SRTP. Useful to protect the RTP and RTCP traffic if both Routers
* are located in different hosts. For this to work, connect() must be called
* are located in different hosts. For this to work, connect() must be called
* with remote SRTP parameters. Defaui
l
t false.
* with remote SRTP parameters. Defauit false.
*/
*/
enableSrtp
?:
boolean
;
enableSrtp
?:
boolean
;
/**
/**
* Custom application data.
* Custom application data.
*/
*/
appData
?:
any
;
appData
?:
any
;
}
}
;
export
interface
PipeTransportStat
{
export
declare
type
PipeTransportStat
=
{
type
:
string
;
type
:
string
;
transportId
:
string
;
transportId
:
string
;
timestamp
:
number
;
timestamp
:
number
;
...
@@ -62,7 +62,7 @@ export interface PipeTransportStat {
...
@@ -62,7 +62,7 @@ export interface PipeTransportStat {
availableIncomingBitrate
?:
number
;
availableIncomingBitrate
?:
number
;
maxIncomingBitrate
?:
number
;
maxIncomingBitrate
?:
number
;
tuple
:
TransportTuple
;
tuple
:
TransportTuple
;
}
}
;
export
declare
class
PipeTransport
extends
Transport
{
export
declare
class
PipeTransport
extends
Transport
{
/**
/**
* @private
* @private
...
@@ -83,7 +83,7 @@ export declare class PipeTransport extends Transport {
...
@@ -83,7 +83,7 @@ export declare class PipeTransport extends Transport {
*/
*/
get
sctpState
():
SctpState
;
get
sctpState
():
SctpState
;
/**
/**
* SRTP key.
* SRTP key
corresponding to the SRTP crypto AES_CM_128_HMAC_SHA1_80
.
*/
*/
get
srtpKey
():
string
|
undefined
;
get
srtpKey
():
string
|
undefined
;
/**
/**
...
...
lib/PipeTransport.d.ts.map
浏览文件 @
201fbc11
{"version":3,"file":"PipeTransport.d.ts","sourceRoot":"","sources":["../src/PipeTransport.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D,OAAO,EACN,SAAS,EACT,iBAAiB,EACjB,cAAc,EAEd,SAAS,EACT,MAAM,aAAa,CAAC;AACrB,OAAO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AA;AAID,qBAAa,aAAc,SAAQ,SAAS;IAkB3C;;;;OAIG;gBACS,MAAM,EAAE,GAAG;IAoBvB;;OAEG;IACH,IAAI,KAAK,IAAI,cAAc,CAG1B;IAED;;OAEG;IACH,IAAI,cAAc,IAAI,cAAc,GAAG,SAAS,CAG/C;IAED;;OAEG;IACH,IAAI,SAAS,IAAI,SAAS,CAGzB;IAED;;OAEG;IACH,IAAI,OAAO,IAAI,MAAM,GAAG,SAAS,CAGhC;IAED;;;;;;;;;;;OAWG;IACH,IAAI,QAAQ,IAAI,oBAAoB,CAGnC;IAED;;;;OAIG;IACH,KAAK,IAAI,IAAI;IAWb;;;;;OAKG;IACH,YAAY,IAAI,IAAI;IAWpB;;;;OAIG;IACG,QAAQ,IAAI,OAAO,CAAC,iBAAiB,EAAE,CAAC;IAO9C;;;;OAIG;IACG,OAAO,CACZ,EACC,EAAE,EACF,IAAI,EACJ,OAAO,EACP,EACD;QACC,EAAE,EAAE,MAAM,CAAC;QACX,IAAI,EAAE,MAAM,CAAC;QACb,OAAO,CAAC,EAAE,MAAM,CAAC;KACjB,GACC,OAAO,CAAC,IAAI,CAAC;IAahB;;;;OAIG;IACG,OAAO,CAAC,EAAE,UAAU,EAAE,OAAY,EAAE,EAAE,eAAe,GAAG,OAAO,CAAC,QAAQ,CAAC;IAoD/E,OAAO,CAAC,0BAA0B;CAuClC"}
\ No newline at end of file
\ No newline at end of file
lib/PipeTransport.js
浏览文件 @
201fbc11
...
@@ -67,7 +67,7 @@ class PipeTransport extends Transport_1.Transport {
...
@@ -67,7 +67,7 @@ class PipeTransport extends Transport_1.Transport {
return
this
.
_data
.
sctpState
;
return
this
.
_data
.
sctpState
;
}
}
/**
/**
* SRTP key.
* SRTP key
corresponding to the SRTP crypto AES_CM_128_HMAC_SHA1_80
.
*/
*/
get
srtpKey
()
{
get
srtpKey
()
{
return
this
.
_data
.
srtpKey
;
return
this
.
_data
.
srtpKey
;
...
...
lib/PlainRtpTransport.d.ts
浏览文件 @
201fbc11
...
@@ -2,7 +2,7 @@ import { EnhancedEventEmitter } from './EnhancedEventEmitter';
...
@@ -2,7 +2,7 @@ import { EnhancedEventEmitter } from './EnhancedEventEmitter';
import
{
Transport
,
TransportListenIp
,
TransportTuple
,
SctpState
}
from
'./Transport'
;
import
{
Transport
,
TransportListenIp
,
TransportTuple
,
SctpState
}
from
'./Transport'
;
import
{
Consumer
,
ConsumerOptions
}
from
'./Consumer'
;
import
{
Consumer
,
ConsumerOptions
}
from
'./Consumer'
;
import
{
SctpParameters
,
NumSctpStreams
}
from
'./SctpParameters'
;
import
{
SctpParameters
,
NumSctpStreams
}
from
'./SctpParameters'
;
export
interface
PlainRtpTransportOptions
{
export
declare
type
PlainRtpTransportOptions
=
{
/**
/**
* Listening IP address.
* Listening IP address.
*/
*/
...
@@ -40,8 +40,8 @@ export interface PlainRtpTransportOptions {
...
@@ -40,8 +40,8 @@ export interface PlainRtpTransportOptions {
* Custom application data.
* Custom application data.
*/
*/
appData
?:
any
;
appData
?:
any
;
}
}
;
export
interface
PlainRtpTransportStat
{
export
declare
type
PlainRtpTransportStat
=
{
type
:
string
;
type
:
string
;
transportId
:
string
;
transportId
:
string
;
timestamp
:
number
;
timestamp
:
number
;
...
@@ -70,7 +70,7 @@ export interface PlainRtpTransportStat {
...
@@ -70,7 +70,7 @@ export interface PlainRtpTransportStat {
multiSource
:
boolean
;
multiSource
:
boolean
;
tuple
:
TransportTuple
;
tuple
:
TransportTuple
;
rtcpTuple
?:
TransportTuple
;
rtcpTuple
?:
TransportTuple
;
}
}
;
export
declare
class
PlainRtpTransport
extends
Transport
{
export
declare
class
PlainRtpTransport
extends
Transport
{
/**
/**
* @private
* @private
...
...
lib/PlainRtpTransport.d.ts.map
浏览文件 @
201fbc11
{"version":3,"file":"PlainRtpTransport.d.ts","sourceRoot":"","sources":["../src/PlainRtpTransport.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO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at end of file
\ No newline at end of file
lib/Producer.d.ts
浏览文件 @
201fbc11
import
{
EnhancedEventEmitter
}
from
'./EnhancedEventEmitter'
;
import
{
EnhancedEventEmitter
}
from
'./EnhancedEventEmitter'
;
import
{
Channel
}
from
'./Channel'
;
import
{
Channel
}
from
'./Channel'
;
import
{
MediaKind
,
RtpParameters
}
from
'./RtpParameters'
;
import
{
MediaKind
,
RtpParameters
}
from
'./RtpParameters'
;
export
interface
ProducerOptions
{
export
declare
type
ProducerOptions
=
{
/**
/**
* Producer id (just for Router.pipeToRouter() method).
* Producer id (just for Router.pipeToRouter() method).
*/
*/
...
@@ -27,7 +27,7 @@ export interface ProducerOptions {
...
@@ -27,7 +27,7 @@ export interface ProducerOptions {
* Custom application data.
* Custom application data.
*/
*/
appData
?:
any
;
appData
?:
any
;
}
}
;
/**
/**
* Valid types for 'trace' event.
* Valid types for 'trace' event.
*/
*/
...
@@ -35,7 +35,7 @@ export declare type ProducerTraceEventType = 'rtp' | 'keyframe' | 'nack' | 'pli'
...
@@ -35,7 +35,7 @@ export declare type ProducerTraceEventType = 'rtp' | 'keyframe' | 'nack' | 'pli'
/**
/**
* 'trace' event data.
* 'trace' event data.
*/
*/
export
interface
ProducerTraceEventData
{
export
declare
type
ProducerTraceEventData
=
{
/**
/**
* Trace type.
* Trace type.
*/
*/
...
@@ -52,8 +52,8 @@ export interface ProducerTraceEventData {
...
@@ -52,8 +52,8 @@ export interface ProducerTraceEventData {
* Per type information.
* Per type information.
*/
*/
info
:
any
;
info
:
any
;
}
}
;
export
interface
ProducerScore
{
export
declare
type
ProducerScore
=
{
/**
/**
* SSRC of the RTP stream.
* SSRC of the RTP stream.
*/
*/
...
@@ -66,8 +66,8 @@ export interface ProducerScore {
...
@@ -66,8 +66,8 @@ export interface ProducerScore {
* The score of the RTP stream.
* The score of the RTP stream.
*/
*/
score
:
number
;
score
:
number
;
}
}
;
export
interface
ProducerVideoOrientation
{
export
declare
type
ProducerVideoOrientation
=
{
/**
/**
* Whether the source is a video camera.
* Whether the source is a video camera.
*/
*/
...
@@ -80,8 +80,8 @@ export interface ProducerVideoOrientation {
...
@@ -80,8 +80,8 @@ export interface ProducerVideoOrientation {
* Rotation degrees (0, 90, 180 or 270).
* Rotation degrees (0, 90, 180 or 270).
*/
*/
rotation
:
number
;
rotation
:
number
;
}
}
;
export
interface
ProducerStat
{
export
declare
type
ProducerStat
=
{
type
:
string
;
type
:
string
;
timestamp
:
number
;
timestamp
:
number
;
ssrc
:
number
;
ssrc
:
number
;
...
@@ -105,7 +105,7 @@ export interface ProducerStat {
...
@@ -105,7 +105,7 @@ export interface ProducerStat {
roundTripTime
?:
number
;
roundTripTime
?:
number
;
jitter
:
number
;
jitter
:
number
;
bitrateByLayer
?:
any
;
bitrateByLayer
?:
any
;
}
}
;
/**
/**
* Producer type.
* Producer type.
*/
*/
...
...
lib/Producer.d.ts.map
浏览文件 @
201fbc11
{"version":3,"file":"Producer.d.ts","sourceRoot":"","sources":["../src/Producer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAE3D,MAAM,WAAW,eAAe;IAE/B;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ;;OAEG;IACH,IAAI,EAAE,SAAS,CAAC;IAEhB;;OAEG;IACH,aAAa,EAAE,aAAa,CAAC;IAE7B;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IAEjB;;;OAGG;IACH,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAE9B;;OAEG;IACH,OAAO,CAAC,EAAE,GAAG,CAAC;CACd;AAED;;GAEG;AACH,oBAAY,sBAAsB,GAAG,KAAK,GAAG,UAAU,GAAG,MAAM,GAAG,KAAK,GAAG,KAAK,CAAC;AAEjF;;GAEG;AACH,MAAM,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AQ,IAAI,oBAAoB,CAGnC;IAED;;OAEG;IACH,KAAK,IAAI,IAAI;IAqBb;;;;OAIG;IACH,eAAe,IAAI,IAAI;IAkBvB;;OAEG;IACG,IAAI,IAAI,OAAO,CAAC,GAAG,CAAC;IAO1B;;OAEG;IACG,QAAQ,IAAI,OAAO,CAAC,YAAY,EAAE,CAAC;IAOzC;;OAEG;IACG,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAe5B;;OAEG;IACG,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC;IAe7B;;OAEG;IACG,gBAAgB,CAAC,KAAK,GAAE,sBAAsB,EAAO,GAAG,OAAO,CAAC,IAAI,CAAC;IAU3E,OAAO,CAAC,0BAA0B;CAmDlC"}
\ No newline at end of file
\ No newline at end of file
lib/Router.d.ts
浏览文件 @
201fbc11
...
@@ -11,7 +11,7 @@ import { DataConsumer } from './DataConsumer';
...
@@ -11,7 +11,7 @@ import { DataConsumer } from './DataConsumer';
import
{
AudioLevelObserver
,
AudioLevelObserverOptions
}
from
'./AudioLevelObserver'
;
import
{
AudioLevelObserver
,
AudioLevelObserverOptions
}
from
'./AudioLevelObserver'
;
import
{
RtpCapabilities
,
RtpCodecCapability
}
from
'./RtpParameters'
;
import
{
RtpCapabilities
,
RtpCodecCapability
}
from
'./RtpParameters'
;
import
{
NumSctpStreams
}
from
'./SctpParameters'
;
import
{
NumSctpStreams
}
from
'./SctpParameters'
;
export
interface
RouterOptions
{
export
declare
type
RouterOptions
=
{
/**
/**
* Router media codecs.
* Router media codecs.
*/
*/
...
@@ -20,8 +20,8 @@ export interface RouterOptions {
...
@@ -20,8 +20,8 @@ export interface RouterOptions {
* Custom application data.
* Custom application data.
*/
*/
appData
?:
any
;
appData
?:
any
;
}
}
;
export
interface
PipeToRouterOptions
{
export
declare
type
PipeToRouterOptions
=
{
/**
/**
* The id of the Producer to consume.
* The id of the Producer to consume.
*/
*/
...
@@ -46,8 +46,8 @@ export interface PipeToRouterOptions {
...
@@ -46,8 +46,8 @@ export interface PipeToRouterOptions {
* SCTP streams number.
* SCTP streams number.
*/
*/
numSctpStreams
?:
NumSctpStreams
;
numSctpStreams
?:
NumSctpStreams
;
}
}
;
export
interface
PipeToRouterResult
{
export
declare
type
PipeToRouterResult
=
{
/**
/**
* The Consumer created in the current Router.
* The Consumer created in the current Router.
*/
*/
...
@@ -64,7 +64,7 @@ export interface PipeToRouterResult {
...
@@ -64,7 +64,7 @@ export interface PipeToRouterResult {
* The DataProducer created in the target Router.
* The DataProducer created in the target Router.
*/
*/
pipeDataProducer
?:
DataProducer
;
pipeDataProducer
?:
DataProducer
;
}
}
;
export
declare
class
Router
extends
EnhancedEventEmitter
{
export
declare
class
Router
extends
EnhancedEventEmitter
{
private
readonly
_internal
;
private
readonly
_internal
;
private
readonly
_data
;
private
readonly
_data
;
...
...
lib/Router.d.ts.map
浏览文件 @
201fbc11
{"version":3,"file":"Router.d.ts","sourceRoot":"","sources":["../src/Router.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAG9D,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAa,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAC3D,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAC5E,OAAO,EAAE,iBAAiB,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;AAClF,OAAO,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AACtE,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,OAAO,EAAE,kBAAkB,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAC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Z,EAAE,wBAAwB,GACzB,OAAO,CAAC,iBAAiB,CAAC;IAyE7B;;OAEG;IACG,mBAAmB,CACxB,EACC,QAAQ,EACR,UAAkB,EAClB,cAAwC,EACxC,kBAA+B,EAC/B,SAAiB,EACjB,UAAkB,EAClB,OAAY,EACZ,EAAE,oBAAoB,GACrB,OAAO,CAAC,aAAa,CAAC;IAwEzB;;OAEG;IACG,YAAY,CACjB,EACC,UAAU,EACV,cAAc,EACd,MAAM,EACN,QAAsB,EACtB,UAAiB,EACjB,cAAwC,EACxC,EAAE,mBAAmB,GACpB,OAAO,CAAC,kBAAkB,CAAC;IAwM9B;;OAEG;IACG,wBAAwB,CAC7B,EACC,UAAc,EACd,SAAe,EACf,QAAe,EACf,OAAY,EACZ,GAAE,yBAA8B,GAC/B,OAAO,CAAC,kBAAkB,CAAC;IAkC9B;;OAEG;IACH,UAAU,CACT,EACC,UAAU,EACV,eAAe,EACf,EACD;QACC,UAAU,EAAE,MAAM,CAAC;QACnB,eAAe,EAAE,eAAe,CAAC;KACjC,GACC,OAAO;CAuBV"}
\ No newline at end of file
\ No newline at end of file
lib/RtpParameters.d.ts
浏览文件 @
201fbc11
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* The RTP capabilities define what mediasoup or an endpoint can receive at
* The RTP capabilities define what mediasoup or an endpoint can receive at
* media level.
* media level.
*/
*/
export
interface
RtpCapabilities
{
export
declare
type
RtpCapabilities
=
{
/**
/**
* Supported media and RTX codecs.
* Supported media and RTX codecs.
*/
*/
...
@@ -15,7 +15,7 @@ export interface RtpCapabilities {
...
@@ -15,7 +15,7 @@ export interface RtpCapabilities {
* Supported FEC mechanisms.
* Supported FEC mechanisms.
*/
*/
fecMechanisms
?:
string
[];
fecMechanisms
?:
string
[];
}
}
;
/**
/**
* Media kind ('audio' or 'video').
* Media kind ('audio' or 'video').
*/
*/
...
@@ -37,7 +37,7 @@ export declare type MediaKind = 'audio' | 'video';
...
@@ -37,7 +37,7 @@ export declare type MediaKind = 'audio' | 'video';
* require preferredPayloadType field (if unset, mediasoup will choose a random
* require preferredPayloadType field (if unset, mediasoup will choose a random
* one). If given, make sure it's in the 96-127 range.
* one). If given, make sure it's in the 96-127 range.
*/
*/
export
interface
RtpCodecCapability
{
export
declare
type
RtpCodecCapability
=
{
/**
/**
* Media kind.
* Media kind.
*/
*/
...
@@ -69,7 +69,7 @@ export interface RtpCodecCapability {
...
@@ -69,7 +69,7 @@ export interface RtpCodecCapability {
* Transport layer and codec-specific feedback messages for this codec.
* Transport layer and codec-specific feedback messages for this codec.
*/
*/
rtcpFeedback
?:
RtcpFeedback
[];
rtcpFeedback
?:
RtcpFeedback
[];
}
}
;
/**
/**
* Direction of RTP header extension.
* Direction of RTP header extension.
*/
*/
...
@@ -84,7 +84,7 @@ export declare type RtpHeaderExtensionDirection = 'sendrecv' | 'sendonly' | 'rec
...
@@ -84,7 +84,7 @@ export declare type RtpHeaderExtensionDirection = 'sendrecv' | 'sendonly' | 'rec
* router.rtpCapabilities or mediasoup.getSupportedRtpCapabilities()). It's
* router.rtpCapabilities or mediasoup.getSupportedRtpCapabilities()). It's
* ignored if present in endpoints' RTP capabilities.
* ignored if present in endpoints' RTP capabilities.
*/
*/
export
interface
RtpHeaderExtension
{
export
declare
type
RtpHeaderExtension
=
{
/**
/**
* Media kind. If empty string, it's valid for all kinds.
* Media kind. If empty string, it's valid for all kinds.
* Default any media kind.
* Default any media kind.
...
@@ -107,7 +107,7 @@ export interface RtpHeaderExtension {
...
@@ -107,7 +107,7 @@ export interface RtpHeaderExtension {
* means that mediasoup can receive (but not send) it.
* means that mediasoup can receive (but not send) it.
*/
*/
direction
?:
RtpHeaderExtensionDirection
;
direction
?:
RtpHeaderExtensionDirection
;
}
}
;
/**
/**
* The RTP send parameters describe a media stream received by mediasoup from
* The RTP send parameters describe a media stream received by mediasoup from
* an endpoint through its corresponding mediasoup Producer. These parameters
* an endpoint through its corresponding mediasoup Producer. These parameters
...
@@ -139,7 +139,7 @@ export interface RtpHeaderExtension {
...
@@ -139,7 +139,7 @@ export interface RtpHeaderExtension {
* the associated producer. This applies even if the producer's encodings have
* the associated producer. This applies even if the producer's encodings have
* rid set.
* rid set.
*/
*/
export
interface
RtpParameters
{
export
declare
type
RtpParameters
=
{
/**
/**
* The MID RTP extension value as defined in the BUNDLE specification.
* The MID RTP extension value as defined in the BUNDLE specification.
*/
*/
...
@@ -160,13 +160,13 @@ export interface RtpParameters {
...
@@ -160,13 +160,13 @@ export interface RtpParameters {
* Parameters used for RTCP.
* Parameters used for RTCP.
*/
*/
rtcp
?:
RtcpParameters
;
rtcp
?:
RtcpParameters
;
}
}
;
/**
/**
* Provides information on codec settings within the RTP parameters. The list
* Provides information on codec settings within the RTP parameters. The list
* of media codecs supported by mediasoup and their settings is defined in the
* of media codecs supported by mediasoup and their settings is defined in the
* supportedRtpCapabilities.ts file.
* supportedRtpCapabilities.ts file.
*/
*/
export
interface
RtpCodecParameters
{
export
declare
type
RtpCodecParameters
=
{
/**
/**
* The codec MIME media type/subtype (e.g. 'audio/opus', 'video/VP8').
* The codec MIME media type/subtype (e.g. 'audio/opus', 'video/VP8').
*/
*/
...
@@ -194,14 +194,14 @@ export interface RtpCodecParameters {
...
@@ -194,14 +194,14 @@ export interface RtpCodecParameters {
* Transport layer and codec-specific feedback messages for this codec.
* Transport layer and codec-specific feedback messages for this codec.
*/
*/
rtcpFeedback
?:
RtcpFeedback
[];
rtcpFeedback
?:
RtcpFeedback
[];
}
}
;
/**
/**
* Provides information on RTCP feedback messages for a specific codec. Those
* Provides information on RTCP feedback messages for a specific codec. Those
* messages can be transport layer feedback messages or codec-specific feedback
* messages can be transport layer feedback messages or codec-specific feedback
* messages. The list of RTCP feedbacks supported by mediasoup is defined in the
* messages. The list of RTCP feedbacks supported by mediasoup is defined in the
* supportedRtpCapabilities.ts file.
* supportedRtpCapabilities.ts file.
*/
*/
export
interface
RtcpFeedback
{
export
declare
type
RtcpFeedback
=
{
/**
/**
* RTCP feedback type.
* RTCP feedback type.
*/
*/
...
@@ -210,12 +210,12 @@ export interface RtcpFeedback {
...
@@ -210,12 +210,12 @@ export interface RtcpFeedback {
* RTCP feedback parameter.
* RTCP feedback parameter.
*/
*/
parameter
?:
string
;
parameter
?:
string
;
}
}
;
/**
/**
* Provides information relating to an encoding, which represents a media RTP
* Provides information relating to an encoding, which represents a media RTP
* stream and its associated RTX stream (if any).
* stream and its associated RTX stream (if any).
*/
*/
export
interface
RtpEncodingParameters
{
export
declare
type
RtpEncodingParameters
=
{
/**
/**
* The media SSRC.
* The media SSRC.
*/
*/
...
@@ -246,7 +246,7 @@ export interface RtpEncodingParameters {
...
@@ -246,7 +246,7 @@ export interface RtpEncodingParameters {
* See webrtc-svc.
* See webrtc-svc.
*/
*/
scalabilityMode
?:
string
;
scalabilityMode
?:
string
;
}
}
;
/**
/**
* Defines a RTP header extension within the RTP parameters. The list of RTP
* Defines a RTP header extension within the RTP parameters. The list of RTP
* header extensions supported by mediasoup is defined in the
* header extensions supported by mediasoup is defined in the
...
@@ -255,7 +255,7 @@ export interface RtpEncodingParameters {
...
@@ -255,7 +255,7 @@ export interface RtpEncodingParameters {
* mediasoup does not currently support encrypted RTP header extensions and no
* mediasoup does not currently support encrypted RTP header extensions and no
* parameters are currently considered.
* parameters are currently considered.
*/
*/
export
interface
RtpHeaderExtensionParameters
{
export
declare
type
RtpHeaderExtensionParameters
=
{
/**
/**
* The URI of the RTP header extension, as defined in RFC 5285.
* The URI of the RTP header extension, as defined in RFC 5285.
*/
*/
...
@@ -272,7 +272,7 @@ export interface RtpHeaderExtensionParameters {
...
@@ -272,7 +272,7 @@ export interface RtpHeaderExtensionParameters {
* Configuration parameters for the header extension.
* Configuration parameters for the header extension.
*/
*/
parameters
?:
any
;
parameters
?:
any
;
}
}
;
/**
/**
* Provides information on RTCP settings within the RTP parameters.
* Provides information on RTCP settings within the RTP parameters.
*
*
...
@@ -282,7 +282,7 @@ export interface RtpHeaderExtensionParameters {
...
@@ -282,7 +282,7 @@ export interface RtpHeaderExtensionParameters {
*
*
* mediasoup assumes reducedSize to always be true.
* mediasoup assumes reducedSize to always be true.
*/
*/
export
interface
RtcpParameters
{
export
declare
type
RtcpParameters
=
{
/**
/**
* The Canonical Name (CNAME) used by RTCP (e.g. in SDES messages).
* The Canonical Name (CNAME) used by RTCP (e.g. in SDES messages).
*/
*/
...
@@ -296,5 +296,5 @@ export interface RtcpParameters {
...
@@ -296,5 +296,5 @@ export interface RtcpParameters {
* Whether RTCP-mux is used. Default true.
* Whether RTCP-mux is used. Default true.
*/
*/
mux
?:
boolean
;
mux
?:
boolean
;
}
}
;
//# sourceMappingURL=RtpParameters.d.ts.map
//# sourceMappingURL=RtpParameters.d.ts.map
\ No newline at end of file
lib/RtpParameters.d.ts.map
浏览文件 @
201fbc11
{"version":3,"file":"RtpParameters.d.ts","sourceRoot":"","sources":["../src/RtpParameters.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,WAAW,eAAe;IAE/B;;OAEG;IACH,MAAM,CAAC,EAAE,kBAAkB,EAAE,CAAC;IAE9B;;OAEG;IACH,gBAAgB,CAAC,EAAE,kBAAkB,EAAE,CAAC;IAExC;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;CACzB;AAED;;GAEG;AACH,oBAAY,SAAS,GAAG,OAAO,GAAG,OAAO,CAAC;AAE1C;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,WAAW,kBAAkB;IAElC;;OAEG;IACH,IAAI,EAAE,SAAS,CAAC;IAEhB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAE9B;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;;OAIG;IACH,UAAU,CAAC,EAAE,GAAG,CAAC;IAEjB;;OAEG;IACH,YAAY,CAAC,EAAE,YAAY,EAAE,CAAC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AC;IAElB;;;;OAIG;IACH,UAAU,CAAC,EAAE,GAAG,CAAC;IAEjB;;OAEG;IACH,YAAY,CAAC,EAAE,YAAY,EAAE,CAAC;CAC9B,CAAA;AAED;;;;;GAKG;AACH,oBAAY,YAAY,GACxB;IACC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACnB,CAAA;AAED;;;GAGG;AACH,oBAAY,qBAAqB,GACjC;IACC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B;;;OAGG;IACH,GAAG,CAAC,EAAE,GAAG,CAAC;IAEV;;;;;OAKG;IACH,GAAG,CAAC,EAAE,OAAO,CAAC;IAEd;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;CACzB,CAAA;AAED;;;;;;;GAOG;AACH,oBAAY,4BAA4B,GACxC;IACC;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IAEZ;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;OAEG;IACH,UAAU,CAAC,EAAE,GAAG,CAAC;CACjB,CAAA;AAED;;;;;;;;GAQG;AACH,oBAAY,cAAc,GAC1B;IACC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;OAEG;IACH,GAAG,CAAC,EAAE,OAAO,CAAC;CACd,CAAA"}
\ No newline at end of file
\ No newline at end of file
lib/SctpParameters.d.ts
浏览文件 @
201fbc11
export
interface
SctpCapabilities
{
export
declare
type
SctpCapabilities
=
{
numStreams
:
NumSctpStreams
;
numStreams
:
NumSctpStreams
;
}
}
;
/**
/**
* Both OS and MIS are part of the SCTP INIT+ACK handshake. OS refers to the
* Both OS and MIS are part of the SCTP INIT+ACK handshake. OS refers to the
* initial number of outgoing SCTP streams that the server side transport creates
* initial number of outgoing SCTP streams that the server side transport creates
...
@@ -23,7 +23,7 @@ export interface SctpCapabilities {
...
@@ -23,7 +23,7 @@ export interface SctpCapabilities {
* mediasoup-client provides specific per browser/version OS and MIS values via
* mediasoup-client provides specific per browser/version OS and MIS values via
* the device.sctpCapabilities getter.
* the device.sctpCapabilities getter.
*/
*/
export
interface
NumSctpStreams
{
export
declare
type
NumSctpStreams
=
{
/**
/**
* Initially requested number of outgoing SCTP streams.
* Initially requested number of outgoing SCTP streams.
*/
*/
...
@@ -32,8 +32,8 @@ export interface NumSctpStreams {
...
@@ -32,8 +32,8 @@ export interface NumSctpStreams {
* Maximum number of incoming SCTP streams.
* Maximum number of incoming SCTP streams.
*/
*/
MIS
:
number
;
MIS
:
number
;
}
}
;
export
interface
SctpParameters
{
export
declare
type
SctpParameters
=
{
/**
/**
* Must always equal 5000.
* Must always equal 5000.
*/
*/
...
@@ -50,7 +50,7 @@ export interface SctpParameters {
...
@@ -50,7 +50,7 @@ export interface SctpParameters {
* Maximum allowed size for SCTP messages.
* Maximum allowed size for SCTP messages.
*/
*/
maxMessageSize
:
number
;
maxMessageSize
:
number
;
}
}
;
/**
/**
* SCTP stream parameters describe the reliability of a certain SCTP stream.
* SCTP stream parameters describe the reliability of a certain SCTP stream.
* If ordered is true then maxPacketLifeTime and maxRetransmits must be
* If ordered is true then maxPacketLifeTime and maxRetransmits must be
...
@@ -58,7 +58,7 @@ export interface SctpParameters {
...
@@ -58,7 +58,7 @@ export interface SctpParameters {
* If ordered if false, only one of maxPacketLifeTime or maxRetransmits
* If ordered if false, only one of maxPacketLifeTime or maxRetransmits
* can be true.
* can be true.
*/
*/
export
interface
SctpStreamParameters
{
export
declare
type
SctpStreamParameters
=
{
/**
/**
* SCTP stream id.
* SCTP stream id.
*/
*/
...
@@ -78,5 +78,5 @@ export interface SctpStreamParameters {
...
@@ -78,5 +78,5 @@ export interface SctpStreamParameters {
* be retransmitted.
* be retransmitted.
*/
*/
maxRetransmits
?:
number
;
maxRetransmits
?:
number
;
}
}
;
//# sourceMappingURL=SctpParameters.d.ts.map
//# sourceMappingURL=SctpParameters.d.ts.map
\ No newline at end of file
lib/SctpParameters.d.ts.map
浏览文件 @
201fbc11
{"version":3,"file":"SctpParameters.d.ts","sourceRoot":"","sources":["../src/SctpParameters.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,gBAAgB;IAE/B,UAAU,EAAE,cAAc,CAAC;CAC5B;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,WAAW,cAAc;IAE9B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,cAAc;IAE9B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IAEZ;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;CACvB;AAED;;;;;;GAMG;AACH,MAAM,WAAW,oBAAoB;IAEpC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;;OAGG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CACxB"}
{"version":3,"file":"SctpParameters.d.ts","sourceRoot":"","sources":["../src/SctpParameters.ts"],"names":[],"mappings":"AAAA,oBAAY,gBAAgB,GAC5B;IACE,UAAU,EAAE,cAAc,CAAC;CAC5B,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,oBAAY,cAAc,GAC1B;IACC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;CACZ,CAAA;AAED,oBAAY,cAAc,GAC1B;IACC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IAEZ;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;CACvB,CAAA;AAED;;;;;;GAMG;AACH,oBAAY,oBAAoB,GAChC;IACC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;;OAGG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CACxB,CAAA"}
\ No newline at end of file
\ No newline at end of file
lib/WebRtcTransport.d.ts
浏览文件 @
201fbc11
import
{
EnhancedEventEmitter
}
from
'./EnhancedEventEmitter'
;
import
{
EnhancedEventEmitter
}
from
'./EnhancedEventEmitter'
;
import
{
Transport
,
TransportListenIp
,
TransportProtocol
,
TransportTuple
,
SctpState
}
from
'./Transport'
;
import
{
Transport
,
TransportListenIp
,
TransportProtocol
,
TransportTuple
,
SctpState
}
from
'./Transport'
;
import
{
SctpParameters
,
NumSctpStreams
}
from
'./SctpParameters'
;
import
{
SctpParameters
,
NumSctpStreams
}
from
'./SctpParameters'
;
export
interface
WebRtcTransportOptions
{
export
declare
type
WebRtcTransportOptions
=
{
/**
/**
* Listening IP address or addresses in order of preference (first one is the
* Listening IP address or addresses in order of preference (first one is the
* preferred one).
* preferred one).
...
@@ -44,13 +44,13 @@ export interface WebRtcTransportOptions {
...
@@ -44,13 +44,13 @@ export interface WebRtcTransportOptions {
* Custom application data.
* Custom application data.
*/
*/
appData
?:
any
;
appData
?:
any
;
}
}
;
export
interface
IceParameters
{
export
declare
type
IceParameters
=
{
usernameFragment
:
string
;
usernameFragment
:
string
;
password
:
string
;
password
:
string
;
iceLite
?:
boolean
;
iceLite
?:
boolean
;
}
}
;
export
interface
IceCandidate
{
export
declare
type
IceCandidate
=
{
foundation
:
string
;
foundation
:
string
;
priority
:
number
;
priority
:
number
;
ip
:
string
;
ip
:
string
;
...
@@ -58,25 +58,25 @@ export interface IceCandidate {
...
@@ -58,25 +58,25 @@ export interface IceCandidate {
port
:
number
;
port
:
number
;
type
:
'host'
;
type
:
'host'
;
tcpType
:
'passive'
|
undefined
;
tcpType
:
'passive'
|
undefined
;
}
}
;
export
interface
DtlsParameters
{
export
declare
type
DtlsParameters
=
{
role
?:
DtlsRole
;
role
?:
DtlsRole
;
fingerprints
:
DtlsFingerprint
[];
fingerprints
:
DtlsFingerprint
[];
}
}
;
/**
/**
* The hash function algorithm (as defined in the "Hash function Textual Names"
* The hash function algorithm (as defined in the "Hash function Textual Names"
* registry initially specified in RFC 4572 Section 8) and its corresponding
* registry initially specified in RFC 4572 Section 8) and its corresponding
* certificate fingerprint value (in lowercase hex string as expressed utilizing
* certificate fingerprint value (in lowercase hex string as expressed utilizing
* the syntax of "fingerprint" in RFC 4572 Section 5).
* the syntax of "fingerprint" in RFC 4572 Section 5).
*/
*/
export
interface
DtlsFingerprint
{
export
declare
type
DtlsFingerprint
=
{
algorithm
:
string
;
algorithm
:
string
;
value
:
string
;
value
:
string
;
}
}
;
export
declare
type
IceState
=
'new'
|
'connected'
|
'completed'
|
'disconnected'
|
'closed'
;
export
declare
type
IceState
=
'new'
|
'connected'
|
'completed'
|
'disconnected'
|
'closed'
;
export
declare
type
DtlsRole
=
'auto'
|
'client'
|
'server'
;
export
declare
type
DtlsRole
=
'auto'
|
'client'
|
'server'
;
export
declare
type
DtlsState
=
'new'
|
'connecting'
|
'connected'
|
'failed'
|
'closed'
;
export
declare
type
DtlsState
=
'new'
|
'connecting'
|
'connected'
|
'failed'
|
'closed'
;
export
interface
WebRtcTransportStat
{
export
declare
type
WebRtcTransportStat
=
{
type
:
string
;
type
:
string
;
transportId
:
string
;
transportId
:
string
;
timestamp
:
number
;
timestamp
:
number
;
...
@@ -104,7 +104,7 @@ export interface WebRtcTransportStat {
...
@@ -104,7 +104,7 @@ export interface WebRtcTransportStat {
iceState
:
IceState
;
iceState
:
IceState
;
iceSelectedTuple
?:
TransportTuple
;
iceSelectedTuple
?:
TransportTuple
;
dtlsState
:
DtlsState
;
dtlsState
:
DtlsState
;
}
}
;
export
declare
class
WebRtcTransport
extends
Transport
{
export
declare
class
WebRtcTransport
extends
Transport
{
/**
/**
* @private
* @private
...
...
lib/WebRtcTransport.d.ts.map
浏览文件 @
201fbc11
{"version":3,"file":"WebRtcTransport.d.ts","sourceRoot":"","sources":["../src/WebRtcTransport.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EACN,SAAS,EACT,iBAAiB,EACjB,iBAAiB,EACjB,cAAc,EAEd,SAAS,EACT,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElE,MAAM,WAAW,sBAAsB;IAEtC;;;OAGG;IACH,SAAS,EAAE,iBAAiB,EAAE,GAAG,MAAM,EAAE,CAAC;IAE1C;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;OAEG;IACH,+BAA+B,CAAC,EAAE,MAAM,CAAC;IAEzC;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;OAEG;IACH,cAAc,CAAC,EAAE,cAAc,CAAC;IAEhC;;;OAGG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAE5B;;OAEG;IACH,OAAO,CAAC,EAAE,GAAG,CAAC;CACd;AAED,MAAM,WAAW,aAAa;IAE7B,gBAAgB,EAAE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,EAAE,CAAC;IAOhD;;;;OAIG;IACG,OAAO,CAAC,EAAE,cAAc,EAAE,EAAE;QAAE,cAAc,EAAE,cAAc,CAAA;KAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAapF;;OAEG;IACG,UAAU,IAAI,OAAO,CAAC,aAAa,CAAC;IAc1C,OAAO,CAAC,0BAA0B;CAqFlC"}
\ No newline at end of file
\ No newline at end of file
lib/Worker.d.ts
浏览文件 @
201fbc11
import
{
EnhancedEventEmitter
}
from
'./EnhancedEventEmitter'
;
import
{
EnhancedEventEmitter
}
from
'./EnhancedEventEmitter'
;
import
{
Router
,
RouterOptions
}
from
'./Router'
;
import
{
Router
,
RouterOptions
}
from
'./Router'
;
export
declare
type
WorkerLogLevel
=
'debug'
|
'warn'
|
'error'
|
'none'
;
export
declare
type
WorkerLogLevel
=
'debug'
|
'warn'
|
'error'
|
'none'
;
export
interface
WorkerSettings
{
export
declare
type
WorkerSettings
=
{
/**
/**
* Logging level for logs generated by the media worker subprocesses (check
* Logging level for logs generated by the media worker subprocesses (check
* the Debugging documentation). Valid values are 'debug', 'warn', 'error' and
* the Debugging documentation). Valid values are 'debug', 'warn', 'error' and
...
@@ -35,7 +35,7 @@ export interface WorkerSettings {
...
@@ -35,7 +35,7 @@ export interface WorkerSettings {
* Custom application data.
* Custom application data.
*/
*/
appData
?:
any
;
appData
?:
any
;
}
}
;
export
declare
type
WorkerUpdateableSettings
=
Pick
<
WorkerSettings
,
'logLevel'
|
'logTags'
>
;
export
declare
type
WorkerUpdateableSettings
=
Pick
<
WorkerSettings
,
'logLevel'
|
'logTags'
>
;
/**
/**
* An object with the fields of the uv_rusage_t struct.
* An object with the fields of the uv_rusage_t struct.
...
@@ -43,7 +43,7 @@ export declare type WorkerUpdateableSettings = Pick<WorkerSettings, 'logLevel' |
...
@@ -43,7 +43,7 @@ export declare type WorkerUpdateableSettings = Pick<WorkerSettings, 'logLevel' |
* - http://docs.libuv.org/en/v1.x/misc.html#c.uv_rusage_t
* - http://docs.libuv.org/en/v1.x/misc.html#c.uv_rusage_t
* - https://linux.die.net/man/2/getrusage
* - https://linux.die.net/man/2/getrusage
*/
*/
export
interface
WorkerResourceUsage
{
export
declare
type
WorkerResourceUsage
=
{
/**
/**
* User CPU time used (in ms).
* User CPU time used (in ms).
*/
*/
...
@@ -108,7 +108,7 @@ export interface WorkerResourceUsage {
...
@@ -108,7 +108,7 @@ export interface WorkerResourceUsage {
* Involuntary context switches.
* Involuntary context switches.
*/
*/
ru_nivcsw
:
number
;
ru_nivcsw
:
number
;
}
}
;
export
declare
class
Worker
extends
EnhancedEventEmitter
{
export
declare
class
Worker
extends
EnhancedEventEmitter
{
private
_child
?;
private
_child
?;
private
readonly
_pid
;
private
readonly
_pid
;
...
...
lib/Worker.d.ts.map
浏览文件 @
201fbc11
{"version":3,"file":"Worker.d.ts","sourceRoot":"","sources":["../src/Worker.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAG9D,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEjD,oBAAY,cAAc,GAAG,OAAO,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC;AAEjE,MAAM,WAAW,cAAc;IAE9B;;;;OAIG;IACH,QAAQ,CAAC,EAAE,cAAc,CAAC;IAE1B;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IAEnB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;OAGG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAE7B;;;OAGG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAE5B;;OAEG;IACH,OAAO,CAAC,EAAE,GAAG,CAAC;CACd;AAED,oBAAY,wBAAwB,GAAG,IAAI,CAAC,cAAc,EAAE,UAAU,GAAG,SAAS,CAAC,CAAC;AA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,EACR,OAAO,EACP,UAAU,EACV,UAAU,EACV,mBAAmB,EACnB,kBAAkB,EAClB,OAAO,EACP,EAAE,cAAc;IA8KlB;;OAEG;IACH,IAAI,GAAG,IAAI,MAAM,CAGhB;IAED;;OAEG;IACH,IAAI,MAAM,IAAI,OAAO,CAGpB;IAED;;OAEG;IACH,IAAI,OAAO,IAAI,GAAG,CAGjB;IAED;;OAEG;IACH,IAAI,OAAO,CAAC,OAAO,EAAE,GAAG,EAGvB;IAED;;;;;OAKG;IACH,IAAI,QAAQ,IAAI,oBAAoB,CAGnC;IAED;;OAEG;IACH,KAAK,IAAI,IAAI;IAmCb;;OAEG;IACG,IAAI,IAAI,OAAO,CAAC,GAAG,CAAC;IAO1B;;OAEG;IACG,gBAAgB,IAAI,OAAO,CAAC,mBAAmB,CAAC;IAOtD;;OAEG;IACG,cAAc,CACnB,EACC,QAAQ,EACR,OAAO,EACP,GAAE,wBAA6B,GAC9B,OAAO,CAAC,IAAI,CAAC;IAShB;;OAEG;IACG,YAAY,CACjB,EACC,WAAW,EACX,OAAY,EACZ,GAAE,aAAkB,GAAG,OAAO,CAAC,MAAM,CAAC;CA+BxC"}
\ No newline at end of file
\ No newline at end of file
lib/ortc.d.ts
浏览文件 @
201fbc11
import
{
RtpCapabilities
,
RtpCodecCapability
,
RtpHeaderExtension
,
RtpParameters
,
RtpCodecParameters
,
RtcpFeedback
,
RtpEncodingParameters
,
RtpHeaderExtensionParameters
,
RtcpParameters
}
from
'./RtpParameters'
;
import
{
RtpCapabilities
,
RtpCodecCapability
,
RtpHeaderExtension
,
RtpParameters
,
RtpCodecParameters
,
RtcpFeedback
,
RtpEncodingParameters
,
RtpHeaderExtensionParameters
,
RtcpParameters
}
from
'./RtpParameters'
;
import
{
SctpCapabilities
,
NumSctpStreams
,
SctpParameters
,
SctpStreamParameters
}
from
'./SctpParameters'
;
import
{
SctpCapabilities
,
NumSctpStreams
,
SctpParameters
,
SctpStreamParameters
}
from
'./SctpParameters'
;
interface
RtpMapping
{
declare
type
RtpMapping
=
{
codecs
:
{
codecs
:
{
payloadType
:
number
;
payloadType
:
number
;
mappedPayloadType
:
number
;
mappedPayloadType
:
number
;
...
@@ -11,7 +11,7 @@ interface RtpMapping {
...
@@ -11,7 +11,7 @@ interface RtpMapping {
scalabilityMode
?:
string
;
scalabilityMode
?:
string
;
mappedSsrc
:
number
;
mappedSsrc
:
number
;
}[];
}[];
}
}
;
/**
/**
* Validates RtpCapabilities. It may modify given data by adding missing
* Validates RtpCapabilities. It may modify given data by adding missing
* fields with default values.
* fields with default values.
...
...
lib/ortc.d.ts.map
浏览文件 @
201fbc11
{"version":3,"file":"ortc.d.ts","sourceRoot":"","sources":["../src/ortc.ts"],"names":[],"mappings":"AAKA,OAAO,EACN,eAAe,EAEf,kBAAkB,EAClB,kBAAkB,EAClB,aAAa,EACb,kBAAkB,EAClB,YAAY,EACZ,qBAAqB,EACrB,4BAA4B,EAC5B,cAAc,EACd,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACN,gBAAgB,EAChB,cAAc,EACd,cAAc,EACd,oBAAoB,EACpB,MAAM,kBAAkB,CAAC;AAE1B,UAAU,UAAU;IAEnB,MAAM,EACN;QACC,WAAW,EAAE,MAAM,CAAC;QACpB,iBAAiB,EAAE,MAAM,CAAC;KAC1B,EAAE,CAAC;IAEJ,SAAS,EACT;QACC,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,GAAG,CAAC,EAAE,MAAM,CAAC;QACb,eAAe,CAAC,EAAE,MAAM,CAAC;QACzB,UAAU,EAAE,MAAM,CAAC;KACnB,EAAE,CAAC;CACJ;AASD;;;;GAIG;AACH,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,eAAe,GAAG,IAAI,CA0BnE;AAED;;;;GAIG;AACH,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,kBAAkB,GAAG,IAAI,CAmE1E;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,EAAE,EAAE,YAAY,GAAG,IAAI,CAY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eAAe,GACnB,aAAa,CAwHf;AAED;;;;;GAKG;AACH,wBAAgB,4BAA4B,CAC3C,gBAAgB,EAAE,aAAa,EAC/B,SAAS,UAAQ,GACf,aAAa,CA+Cf"}
\ No newline at end of file
\ No newline at end of file
lib/scalabilityModes.d.ts
浏览文件 @
201fbc11
export
interface
ScalabilityMode
{
export
declare
type
ScalabilityMode
=
{
spatialLayers
:
number
;
spatialLayers
:
number
;
temporalLayers
:
number
;
temporalLayers
:
number
;
ksvc
:
boolean
;
ksvc
:
boolean
;
}
}
;
export
declare
function
parse
(
scalabilityMode
:
string
):
ScalabilityMode
;
export
declare
function
parse
(
scalabilityMode
:
string
):
ScalabilityMode
;
//# sourceMappingURL=scalabilityModes.d.ts.map
//# sourceMappingURL=scalabilityModes.d.ts.map
\ No newline at end of file
lib/scalabilityModes.d.ts.map
浏览文件 @
201fbc11
{"version":3,"file":"scalabilityModes.d.ts","sourceRoot":"","sources":["../src/scalabilityModes.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,eAAe;IAE/B,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,EAAE,MAAM,CAAC;IACvB,IAAI,EAAE,OAAO,CAAC;CACd;AAED,wBAAgB,KAAK,CAAC,eAAe,EAAE,MAAM,GAAG,eAAe,CAoB9D"}
{"version":3,"file":"scalabilityModes.d.ts","sourceRoot":"","sources":["../src/scalabilityModes.ts"],"names":[],"mappings":"AAGA,oBAAY,eAAe,GAC3B;IACC,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,EAAE,MAAM,CAAC;IACvB,IAAI,EAAE,OAAO,CAAC;CACd,CAAA;AAED,wBAAgB,KAAK,CAAC,eAAe,EAAE,MAAM,GAAG,eAAe,CAoB9D"}
\ No newline at end of file
\ No newline at end of file
lib/types.d.ts
浏览文件 @
201fbc11
...
@@ -12,6 +12,7 @@ export * from './RtpObserver';
...
@@ -12,6 +12,7 @@ export * from './RtpObserver';
export
*
from
'./AudioLevelObserver'
;
export
*
from
'./AudioLevelObserver'
;
export
*
from
'./RtpParameters'
;
export
*
from
'./RtpParameters'
;
export
*
from
'./SctpParameters'
;
export
*
from
'./SctpParameters'
;
export
*
from
'./SrtpParameters'
;
export
*
from
'./errors'
;
export
*
from
'./errors'
;
export
{
ScalabilityMode
}
from
'./scalabilityModes'
;
export
{
ScalabilityMode
}
from
'./scalabilityModes'
;
//# sourceMappingURL=types.d.ts.map
//# sourceMappingURL=types.d.ts.map
\ No newline at end of file
lib/types.d.ts.map
浏览文件 @
201fbc11
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,UAAU,CAAC;AACzB,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC"}
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,UAAU,CAAC;AACzB,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC"}
\ No newline at end of file
\ No newline at end of file
src/Channel.ts
浏览文件 @
201fbc11
...
@@ -7,7 +7,7 @@ import { InvalidStateError } from './errors';
...
@@ -7,7 +7,7 @@ import { InvalidStateError } from './errors';
const
logger
=
new
Logger
(
'Channel'
);
const
logger
=
new
Logger
(
'Channel'
);
interface
Sent
type
Sent
=
{
{
id
:
number
;
id
:
number
;
method
:
string
;
method
:
string
;
...
...
src/Consumer.ts
浏览文件 @
201fbc11
...
@@ -8,7 +8,7 @@ import {
...
@@ -8,7 +8,7 @@ import {
RtpParameters
RtpParameters
}
from
'./RtpParameters'
;
}
from
'./RtpParameters'
;
export
interface
ConsumerOptions
export
type
ConsumerOptions
=
{
{
/**
/**
* The id of the Producer to consume.
* The id of the Producer to consume.
...
@@ -56,7 +56,7 @@ export type ConsumerTraceEventType = 'rtp' | 'keyframe' | 'nack' | 'pli' | 'fir'
...
@@ -56,7 +56,7 @@ export type ConsumerTraceEventType = 'rtp' | 'keyframe' | 'nack' | 'pli' | 'fir'
/**
/**
* 'trace' event data.
* 'trace' event data.
*/
*/
export
interface
ConsumerTraceEventData
export
type
ConsumerTraceEventData
=
{
{
/**
/**
* Trace type.
* Trace type.
...
@@ -79,7 +79,7 @@ export interface ConsumerTraceEventData
...
@@ -79,7 +79,7 @@ export interface ConsumerTraceEventData
info
:
any
;
info
:
any
;
}
}
export
interface
ConsumerScore
export
type
ConsumerScore
=
{
{
/**
/**
* The score of the RTP stream of the consumer.
* The score of the RTP stream of the consumer.
...
@@ -92,7 +92,7 @@ export interface ConsumerScore
...
@@ -92,7 +92,7 @@ export interface ConsumerScore
producerScore
:
number
;
producerScore
:
number
;
}
}
export
interface
ConsumerLayers
export
type
ConsumerLayers
=
{
{
/**
/**
* The spatial layer index (from 0 to N).
* The spatial layer index (from 0 to N).
...
@@ -105,7 +105,7 @@ export interface ConsumerLayers
...
@@ -105,7 +105,7 @@ export interface ConsumerLayers
temporalLayer
?:
number
;
temporalLayer
?:
number
;
}
}
export
interface
ConsumerStat
export
type
ConsumerStat
=
{
{
// Common to all RtpStreams.
// Common to all RtpStreams.
type
:
string
;
type
:
string
;
...
...
src/DataConsumer.ts
浏览文件 @
201fbc11
...
@@ -3,7 +3,7 @@ import { EnhancedEventEmitter } from './EnhancedEventEmitter';
...
@@ -3,7 +3,7 @@ import { EnhancedEventEmitter } from './EnhancedEventEmitter';
import
{
Channel
}
from
'./Channel'
;
import
{
Channel
}
from
'./Channel'
;
import
{
SctpStreamParameters
}
from
'./SctpParameters'
;
import
{
SctpStreamParameters
}
from
'./SctpParameters'
;
export
interface
DataConsumerOptions
export
type
DataConsumerOptions
=
{
{
/**
/**
* The id of the DataProducer to consume.
* The id of the DataProducer to consume.
...
@@ -16,7 +16,7 @@ export interface DataConsumerOptions
...
@@ -16,7 +16,7 @@ export interface DataConsumerOptions
appData
?:
any
;
appData
?:
any
;
}
}
export
interface
DataConsumerStat
export
type
DataConsumerStat
=
{
{
type
:
string
;
type
:
string
;
timestamp
:
number
;
timestamp
:
number
;
...
...
src/DataProducer.ts
浏览文件 @
201fbc11
...
@@ -3,7 +3,7 @@ import { EnhancedEventEmitter } from './EnhancedEventEmitter';
...
@@ -3,7 +3,7 @@ import { EnhancedEventEmitter } from './EnhancedEventEmitter';
import
{
Channel
}
from
'./Channel'
;
import
{
Channel
}
from
'./Channel'
;
import
{
SctpStreamParameters
}
from
'./SctpParameters'
;
import
{
SctpStreamParameters
}
from
'./SctpParameters'
;
export
interface
DataProducerOptions
export
type
DataProducerOptions
=
{
{
/**
/**
* DataProducer id (just for Router.pipeToRouter() method).
* DataProducer id (just for Router.pipeToRouter() method).
...
@@ -31,7 +31,7 @@ export interface DataProducerOptions
...
@@ -31,7 +31,7 @@ export interface DataProducerOptions
appData
?:
any
;
appData
?:
any
;
}
}
export
interface
DataProducerStat
export
type
DataProducerStat
=
{
{
type
:
string
;
type
:
string
;
timestamp
:
number
;
timestamp
:
number
;
...
...
src/PipeTransport.ts
浏览文件 @
201fbc11
...
@@ -12,7 +12,7 @@ import {
...
@@ -12,7 +12,7 @@ import {
import
{
Consumer
,
ConsumerOptions
}
from
'./Consumer'
;
import
{
Consumer
,
ConsumerOptions
}
from
'./Consumer'
;
import
{
SctpParameters
,
NumSctpStreams
}
from
'./SctpParameters'
;
import
{
SctpParameters
,
NumSctpStreams
}
from
'./SctpParameters'
;
export
interface
PipeTransportOptions
export
type
PipeTransportOptions
=
{
{
/**
/**
* Listening IP address.
* Listening IP address.
...
@@ -45,7 +45,7 @@ export interface PipeTransportOptions
...
@@ -45,7 +45,7 @@ export interface PipeTransportOptions
/**
/**
* Enable SRTP. Useful to protect the RTP and RTCP traffic if both Routers
* Enable SRTP. Useful to protect the RTP and RTCP traffic if both Routers
* are located in different hosts. For this to work, connect() must be called
* are located in different hosts. For this to work, connect() must be called
* with remote SRTP parameters. Defaui
l
t false.
* with remote SRTP parameters. Defauit false.
*/
*/
enableSrtp
?:
boolean
;
enableSrtp
?:
boolean
;
...
@@ -55,7 +55,7 @@ export interface PipeTransportOptions
...
@@ -55,7 +55,7 @@ export interface PipeTransportOptions
appData
?:
any
;
appData
?:
any
;
}
}
export
interface
PipeTransportStat
export
type
PipeTransportStat
=
{
{
// Common to all Transports.
// Common to all Transports.
type
:
string
;
type
:
string
;
...
@@ -156,7 +156,7 @@ export class PipeTransport extends Transport
...
@@ -156,7 +156,7 @@ export class PipeTransport extends Transport
}
}
/**
/**
* SRTP key.
* SRTP key
corresponding to the SRTP crypto AES_CM_128_HMAC_SHA1_80
.
*/
*/
get
srtpKey
():
string
|
undefined
get
srtpKey
():
string
|
undefined
{
{
...
...
src/PlainRtpTransport.ts
浏览文件 @
201fbc11
...
@@ -10,7 +10,7 @@ import {
...
@@ -10,7 +10,7 @@ import {
import
{
Consumer
,
ConsumerOptions
}
from
'./Consumer'
;
import
{
Consumer
,
ConsumerOptions
}
from
'./Consumer'
;
import
{
SctpParameters
,
NumSctpStreams
}
from
'./SctpParameters'
;
import
{
SctpParameters
,
NumSctpStreams
}
from
'./SctpParameters'
;
export
interface
PlainRtpTransportOptions
export
type
PlainRtpTransportOptions
=
{
{
/**
/**
* Listening IP address.
* Listening IP address.
...
@@ -58,7 +58,7 @@ export interface PlainRtpTransportOptions
...
@@ -58,7 +58,7 @@ export interface PlainRtpTransportOptions
appData
?:
any
;
appData
?:
any
;
}
}
export
interface
PlainRtpTransportStat
export
type
PlainRtpTransportStat
=
{
{
// Common to all Transports.
// Common to all Transports.
type
:
string
;
type
:
string
;
...
...
src/Producer.ts
浏览文件 @
201fbc11
...
@@ -3,7 +3,7 @@ import { EnhancedEventEmitter } from './EnhancedEventEmitter';
...
@@ -3,7 +3,7 @@ import { EnhancedEventEmitter } from './EnhancedEventEmitter';
import
{
Channel
}
from
'./Channel'
;
import
{
Channel
}
from
'./Channel'
;
import
{
MediaKind
,
RtpParameters
}
from
'./RtpParameters'
;
import
{
MediaKind
,
RtpParameters
}
from
'./RtpParameters'
;
export
interface
ProducerOptions
export
type
ProducerOptions
=
{
{
/**
/**
* Producer id (just for Router.pipeToRouter() method).
* Producer id (just for Router.pipeToRouter() method).
...
@@ -45,7 +45,7 @@ export type ProducerTraceEventType = 'rtp' | 'keyframe' | 'nack' | 'pli' | 'fir'
...
@@ -45,7 +45,7 @@ export type ProducerTraceEventType = 'rtp' | 'keyframe' | 'nack' | 'pli' | 'fir'
/**
/**
* 'trace' event data.
* 'trace' event data.
*/
*/
export
interface
ProducerTraceEventData
export
type
ProducerTraceEventData
=
{
{
/**
/**
* Trace type.
* Trace type.
...
@@ -68,7 +68,7 @@ export interface ProducerTraceEventData
...
@@ -68,7 +68,7 @@ export interface ProducerTraceEventData
info
:
any
;
info
:
any
;
}
}
export
interface
ProducerScore
export
type
ProducerScore
=
{
{
/**
/**
* SSRC of the RTP stream.
* SSRC of the RTP stream.
...
@@ -86,7 +86,7 @@ export interface ProducerScore
...
@@ -86,7 +86,7 @@ export interface ProducerScore
score
:
number
;
score
:
number
;
}
}
export
interface
ProducerVideoOrientation
export
type
ProducerVideoOrientation
=
{
{
/**
/**
* Whether the source is a video camera.
* Whether the source is a video camera.
...
@@ -104,7 +104,7 @@ export interface ProducerVideoOrientation
...
@@ -104,7 +104,7 @@ export interface ProducerVideoOrientation
rotation
:
number
;
rotation
:
number
;
}
}
export
interface
ProducerStat
export
type
ProducerStat
=
{
{
// Common to all RtpStreams.
// Common to all RtpStreams.
type
:
string
;
type
:
string
;
...
...
src/Router.ts
浏览文件 @
201fbc11
...
@@ -18,7 +18,7 @@ import { AudioLevelObserver, AudioLevelObserverOptions } from './AudioLevelObser
...
@@ -18,7 +18,7 @@ import { AudioLevelObserver, AudioLevelObserverOptions } from './AudioLevelObser
import
{
RtpCapabilities
,
RtpCodecCapability
}
from
'./RtpParameters'
;
import
{
RtpCapabilities
,
RtpCodecCapability
}
from
'./RtpParameters'
;
import
{
NumSctpStreams
}
from
'./SctpParameters'
;
import
{
NumSctpStreams
}
from
'./SctpParameters'
;
export
interface
RouterOptions
export
type
RouterOptions
=
{
{
/**
/**
* Router media codecs.
* Router media codecs.
...
@@ -31,7 +31,7 @@ export interface RouterOptions
...
@@ -31,7 +31,7 @@ export interface RouterOptions
appData
?:
any
;
appData
?:
any
;
}
}
export
interface
PipeToRouterOptions
export
type
PipeToRouterOptions
=
{
{
/**
/**
* The id of the Producer to consume.
* The id of the Producer to consume.
...
@@ -64,7 +64,7 @@ export interface PipeToRouterOptions
...
@@ -64,7 +64,7 @@ export interface PipeToRouterOptions
numSctpStreams
?:
NumSctpStreams
;
numSctpStreams
?:
NumSctpStreams
;
}
}
export
interface
PipeToRouterResult
export
type
PipeToRouterResult
=
{
{
/**
/**
* The Consumer created in the current Router.
* The Consumer created in the current Router.
...
...
src/RtpParameters.ts
浏览文件 @
201fbc11
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* The RTP capabilities define what mediasoup or an endpoint can receive at
* The RTP capabilities define what mediasoup or an endpoint can receive at
* media level.
* media level.
*/
*/
export
interface
RtpCapabilities
export
type
RtpCapabilities
=
{
{
/**
/**
* Supported media and RTX codecs.
* Supported media and RTX codecs.
...
@@ -42,7 +42,7 @@ export type MediaKind = 'audio' | 'video';
...
@@ -42,7 +42,7 @@ export type MediaKind = 'audio' | 'video';
* require preferredPayloadType field (if unset, mediasoup will choose a random
* require preferredPayloadType field (if unset, mediasoup will choose a random
* one). If given, make sure it's in the 96-127 range.
* one). If given, make sure it's in the 96-127 range.
*/
*/
export
interface
RtpCodecCapability
export
type
RtpCodecCapability
=
{
{
/**
/**
* Media kind.
* Media kind.
...
@@ -98,7 +98,7 @@ export type RtpHeaderExtensionDirection = 'sendrecv' | 'sendonly' | 'recvonly' |
...
@@ -98,7 +98,7 @@ export type RtpHeaderExtensionDirection = 'sendrecv' | 'sendonly' | 'recvonly' |
* router.rtpCapabilities or mediasoup.getSupportedRtpCapabilities()). It's
* router.rtpCapabilities or mediasoup.getSupportedRtpCapabilities()). It's
* ignored if present in endpoints' RTP capabilities.
* ignored if present in endpoints' RTP capabilities.
*/
*/
export
interface
RtpHeaderExtension
export
type
RtpHeaderExtension
=
{
{
/**
/**
* Media kind. If empty string, it's valid for all kinds.
* Media kind. If empty string, it's valid for all kinds.
...
@@ -162,7 +162,7 @@ export interface RtpHeaderExtension
...
@@ -162,7 +162,7 @@ export interface RtpHeaderExtension
* the associated producer. This applies even if the producer's encodings have
* the associated producer. This applies even if the producer's encodings have
* rid set.
* rid set.
*/
*/
export
interface
RtpParameters
export
type
RtpParameters
=
{
{
/**
/**
* The MID RTP extension value as defined in the BUNDLE specification.
* The MID RTP extension value as defined in the BUNDLE specification.
...
@@ -195,7 +195,7 @@ export interface RtpParameters
...
@@ -195,7 +195,7 @@ export interface RtpParameters
* of media codecs supported by mediasoup and their settings is defined in the
* of media codecs supported by mediasoup and their settings is defined in the
* supportedRtpCapabilities.ts file.
* supportedRtpCapabilities.ts file.
*/
*/
export
interface
RtpCodecParameters
export
type
RtpCodecParameters
=
{
{
/**
/**
* The codec MIME media type/subtype (e.g. 'audio/opus', 'video/VP8').
* The codec MIME media type/subtype (e.g. 'audio/opus', 'video/VP8').
...
@@ -237,7 +237,7 @@ export interface RtpCodecParameters
...
@@ -237,7 +237,7 @@ export interface RtpCodecParameters
* messages. The list of RTCP feedbacks supported by mediasoup is defined in the
* messages. The list of RTCP feedbacks supported by mediasoup is defined in the
* supportedRtpCapabilities.ts file.
* supportedRtpCapabilities.ts file.
*/
*/
export
interface
RtcpFeedback
export
type
RtcpFeedback
=
{
{
/**
/**
* RTCP feedback type.
* RTCP feedback type.
...
@@ -254,7 +254,7 @@ export interface RtcpFeedback
...
@@ -254,7 +254,7 @@ export interface RtcpFeedback
* Provides information relating to an encoding, which represents a media RTP
* Provides information relating to an encoding, which represents a media RTP
* stream and its associated RTX stream (if any).
* stream and its associated RTX stream (if any).
*/
*/
export
interface
RtpEncodingParameters
export
type
RtpEncodingParameters
=
{
{
/**
/**
* The media SSRC.
* The media SSRC.
...
@@ -301,7 +301,7 @@ export interface RtpEncodingParameters
...
@@ -301,7 +301,7 @@ export interface RtpEncodingParameters
* mediasoup does not currently support encrypted RTP header extensions and no
* mediasoup does not currently support encrypted RTP header extensions and no
* parameters are currently considered.
* parameters are currently considered.
*/
*/
export
interface
RtpHeaderExtensionParameters
export
type
RtpHeaderExtensionParameters
=
{
{
/**
/**
* The URI of the RTP header extension, as defined in RFC 5285.
* The URI of the RTP header extension, as defined in RFC 5285.
...
@@ -333,7 +333,7 @@ export interface RtpHeaderExtensionParameters
...
@@ -333,7 +333,7 @@ export interface RtpHeaderExtensionParameters
*
*
* mediasoup assumes reducedSize to always be true.
* mediasoup assumes reducedSize to always be true.
*/
*/
export
interface
RtcpParameters
export
type
RtcpParameters
=
{
{
/**
/**
* The Canonical Name (CNAME) used by RTCP (e.g. in SDES messages).
* The Canonical Name (CNAME) used by RTCP (e.g. in SDES messages).
...
...
src/SctpParameters.ts
浏览文件 @
201fbc11
export
interface
SctpCapabilities
export
type
SctpCapabilities
=
{
{
numStreams
:
NumSctpStreams
;
numStreams
:
NumSctpStreams
;
}
}
...
@@ -25,7 +25,7 @@ export interface SctpCapabilities
...
@@ -25,7 +25,7 @@ export interface SctpCapabilities
* mediasoup-client provides specific per browser/version OS and MIS values via
* mediasoup-client provides specific per browser/version OS and MIS values via
* the device.sctpCapabilities getter.
* the device.sctpCapabilities getter.
*/
*/
export
interface
NumSctpStreams
export
type
NumSctpStreams
=
{
{
/**
/**
* Initially requested number of outgoing SCTP streams.
* Initially requested number of outgoing SCTP streams.
...
@@ -38,7 +38,7 @@ export interface NumSctpStreams
...
@@ -38,7 +38,7 @@ export interface NumSctpStreams
MIS
:
number
;
MIS
:
number
;
}
}
export
interface
SctpParameters
export
type
SctpParameters
=
{
{
/**
/**
* Must always equal 5000.
* Must always equal 5000.
...
@@ -68,7 +68,7 @@ export interface SctpParameters
...
@@ -68,7 +68,7 @@ export interface SctpParameters
* If ordered if false, only one of maxPacketLifeTime or maxRetransmits
* If ordered if false, only one of maxPacketLifeTime or maxRetransmits
* can be true.
* can be true.
*/
*/
export
interface
SctpStreamParameters
export
type
SctpStreamParameters
=
{
{
/**
/**
* SCTP stream id.
* SCTP stream id.
...
...
src/WebRtcTransport.ts
浏览文件 @
201fbc11
...
@@ -10,7 +10,7 @@ import {
...
@@ -10,7 +10,7 @@ import {
}
from
'./Transport'
;
}
from
'./Transport'
;
import
{
SctpParameters
,
NumSctpStreams
}
from
'./SctpParameters'
;
import
{
SctpParameters
,
NumSctpStreams
}
from
'./SctpParameters'
;
export
interface
WebRtcTransportOptions
export
type
WebRtcTransportOptions
=
{
{
/**
/**
* Listening IP address or addresses in order of preference (first one is the
* Listening IP address or addresses in order of preference (first one is the
...
@@ -65,14 +65,14 @@ export interface WebRtcTransportOptions
...
@@ -65,14 +65,14 @@ export interface WebRtcTransportOptions
appData
?:
any
;
appData
?:
any
;
}
}
export
interface
IceParameters
export
type
IceParameters
=
{
{
usernameFragment
:
string
;
usernameFragment
:
string
;
password
:
string
;
password
:
string
;
iceLite
?:
boolean
;
iceLite
?:
boolean
;
}
}
export
interface
IceCandidate
export
type
IceCandidate
=
{
{
foundation
:
string
;
foundation
:
string
;
priority
:
number
;
priority
:
number
;
...
@@ -83,7 +83,7 @@ export interface IceCandidate
...
@@ -83,7 +83,7 @@ export interface IceCandidate
tcpType
:
'passive'
|
undefined
;
tcpType
:
'passive'
|
undefined
;
}
}
export
interface
DtlsParameters
export
type
DtlsParameters
=
{
{
role
?:
DtlsRole
;
role
?:
DtlsRole
;
fingerprints
:
DtlsFingerprint
[];
fingerprints
:
DtlsFingerprint
[];
...
@@ -95,7 +95,7 @@ export interface DtlsParameters
...
@@ -95,7 +95,7 @@ export interface DtlsParameters
* certificate fingerprint value (in lowercase hex string as expressed utilizing
* certificate fingerprint value (in lowercase hex string as expressed utilizing
* the syntax of "fingerprint" in RFC 4572 Section 5).
* the syntax of "fingerprint" in RFC 4572 Section 5).
*/
*/
export
interface
DtlsFingerprint
export
type
DtlsFingerprint
=
{
{
algorithm
:
string
;
algorithm
:
string
;
value
:
string
;
value
:
string
;
...
@@ -107,7 +107,7 @@ export type DtlsRole = 'auto' | 'client' | 'server';
...
@@ -107,7 +107,7 @@ export type DtlsRole = 'auto' | 'client' | 'server';
export
type
DtlsState
=
'new'
|
'connecting'
|
'connected'
|
'failed'
|
'closed'
;
export
type
DtlsState
=
'new'
|
'connecting'
|
'connected'
|
'failed'
|
'closed'
;
export
interface
WebRtcTransportStat
export
type
WebRtcTransportStat
=
{
{
// Common to all Transports.
// Common to all Transports.
type
:
string
;
type
:
string
;
...
...
src/Worker.ts
浏览文件 @
201fbc11
...
@@ -10,7 +10,7 @@ import { Router, RouterOptions } from './Router';
...
@@ -10,7 +10,7 @@ import { Router, RouterOptions } from './Router';
export
type
WorkerLogLevel
=
'debug'
|
'warn'
|
'error'
|
'none'
;
export
type
WorkerLogLevel
=
'debug'
|
'warn'
|
'error'
|
'none'
;
export
interface
WorkerSettings
export
type
WorkerSettings
=
{
{
/**
/**
* Logging level for logs generated by the media worker subprocesses (check
* Logging level for logs generated by the media worker subprocesses (check
...
@@ -61,7 +61,7 @@ export type WorkerUpdateableSettings = Pick<WorkerSettings, 'logLevel' | 'logTag
...
@@ -61,7 +61,7 @@ export type WorkerUpdateableSettings = Pick<WorkerSettings, 'logLevel' | 'logTag
* - http://docs.libuv.org/en/v1.x/misc.html#c.uv_rusage_t
* - http://docs.libuv.org/en/v1.x/misc.html#c.uv_rusage_t
* - https://linux.die.net/man/2/getrusage
* - https://linux.die.net/man/2/getrusage
*/
*/
export
interface
WorkerResourceUsage
export
type
WorkerResourceUsage
=
{
{
/* eslint-disable camelcase */
/* eslint-disable camelcase */
...
...
src/ortc.ts
浏览文件 @
201fbc11
...
@@ -22,7 +22,7 @@ import {
...
@@ -22,7 +22,7 @@ import {
SctpStreamParameters
SctpStreamParameters
}
from
'./SctpParameters'
;
}
from
'./SctpParameters'
;
interface
RtpMapping
type
RtpMapping
=
{
{
codecs
:
codecs
:
{
{
...
...
src/scalabilityModes.ts
浏览文件 @
201fbc11
const
ScalabilityModeRegex
=
const
ScalabilityModeRegex
=
new
RegExp
(
'^[LS]([1-9]
\\
d{0,1})T([1-9]
\\
d{0,1})(_KEY)?'
);
new
RegExp
(
'^[LS]([1-9]
\\
d{0,1})T([1-9]
\\
d{0,1})(_KEY)?'
);
export
interface
ScalabilityMode
export
type
ScalabilityMode
=
{
{
spatialLayers
:
number
;
spatialLayers
:
number
;
temporalLayers
:
number
;
temporalLayers
:
number
;
...
...
src/types.ts
浏览文件 @
201fbc11
...
@@ -12,5 +12,6 @@ export * from './RtpObserver';
...
@@ -12,5 +12,6 @@ export * from './RtpObserver';
export
*
from
'./AudioLevelObserver'
;
export
*
from
'./AudioLevelObserver'
;
export
*
from
'./RtpParameters'
;
export
*
from
'./RtpParameters'
;
export
*
from
'./SctpParameters'
;
export
*
from
'./SctpParameters'
;
export
*
from
'./SrtpParameters'
;
export
*
from
'./errors'
;
export
*
from
'./errors'
;
export
{
ScalabilityMode
}
from
'./scalabilityModes'
;
export
{
ScalabilityMode
}
from
'./scalabilityModes'
;
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论