RTCInboundRtpStreamStats: totalSamplesDuration 屬性
RTCRemoteInboundRtpStreamStats 字典中的 totalSamplesDuration 屬性表示已接收到的所有音訊樣本的總時長。換句話說,就是軌道的當前時長。
可以將其與 totalAudioEnergy 一起使用,以計算不同時間間隔內的平均音訊級別。
注意:此值對於影片流是未定義的。
值
一個正數,單位為秒。
規範
| 規範 |
|---|
| WebRTC 統計 API 的識別符號 # dom-rtcinboundrtpstreamstats-totalsamplesduration |
瀏覽器相容性
載入中…
另見
RTCAudioSourceStats.totalSamplesDuration用於表示已傳送樣本的音訊時長。totalSamplesReceived