Unverified 提交 3ba3540d authored 作者: José Luis Millán's avatar José Luis Millán 提交者: GitHub

Node: Producer, add missing member to ProducerScore (#1225)

This member in the type has been missing for ever, even though it's
documented.
上级 cc863ebb
...@@ -82,6 +82,11 @@ export type ProducerTraceEventData = ...@@ -82,6 +82,11 @@ export type ProducerTraceEventData =
export type ProducerScore = export type ProducerScore =
{ {
/**
* Index of the RTP stream in the rtpParameters.encodings array.
*/
encodingIdx: number;
/** /**
* SSRC of the RTP stream. * SSRC of the RTP stream.
*/ */
...@@ -719,6 +724,7 @@ function parseProducerScore( ...@@ -719,6 +724,7 @@ function parseProducerScore(
): ProducerScore ): ProducerScore
{ {
return { return {
encodingIdx : binary.encodingIdx(),
ssrc : binary.ssrc(), ssrc : binary.ssrc(),
rid : binary.rid() ?? undefined, rid : binary.rid() ?? undefined,
score : binary.score() score : binary.score()
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论