Producer
ProducerOptions
Field | Type | Description | Required | Default |
---|---|---|---|---|
kind | MediaKind | 媒体类型audio或者video | Yes | |
rtpParameters | RtpSendParameters | 发送端的rtp参数,produce出来的类型 | Yes | |
paused | Boolean | start之后,end端,建议先pause,等待resume,建议给true,后续跟进需要resume | No | false |
keyFrameRequestDelay | Number | video才有.询问key frame的间隔 | No | 0 |
appData | Object | Custom application data. | No | {} |
ProducerScore
Field | Type | Description | Required | Default |
---|---|---|---|---|
encodingIdx | Number | Producer rtpParams array index | Yes | |
ssrc | Number | RTP stream SSRC. | Yes | |
rid | String | RTP stream RID value. | No | |
score | Number | RTP stream score (from 0 to 10) representing the transmission quality. | Yes |
ProducerVideoOrientation
Field | Type | Description | Required | Default |
---|---|---|---|---|
camera | Boolean | 摄像头数据源 | Yes | |
flip | Boolean | 视频资源是否被翻转 | Yes | |
rotation | Number | 旋转0,80,180,270度 | Yes |
ProducerTraceEventData
Field | Type | Description | Required | Default |
---|---|---|---|---|
type | ProducerTraceEventType | Trace event type. | Yes | |
timestamp | Number | Event timestamp. | Yes | |
direction | String | “in” (icoming direction) or “out” (outgoing direction). | Yes | |
info | Object | Per type specific information. | Yes |
Enums
ProducerType
Value | Description |
---|---|
“simple” | A single RTP stream is received with no spatial/temporal layers. |
“simulcast” | Two or more RTP streams are received, each of them with one or more temporal layers. |
“svc” | A single RTP stream is received with spatial/temporal layers. |