mediasoup v3 API 之三 Producer Consumer & RtpObserver

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.

Pr

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值