Skip to content

Commit

Permalink
test: 添加音视频播放时间差统计
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaohappy committed Dec 20, 2024
1 parent a3b7d9d commit 732c393
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/avplayer.html
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,9 @@
<div class="stats-item">
videoStutter: <span id="videoStutter" class="stats-text">0</span>
</div>
<div class="stats-item">
A-V: <span id="A_V" class="stats-text">0</span> ms
</div>
<div class="stats-item">
bandwidth: <span id="bandwidth" class="stats-text">0</span> kbps
</div>
Expand Down Expand Up @@ -688,7 +691,8 @@
loop: loopComponent.loop,
jitterBufferMax: 4,
jitterBufferMin: 1,
lowLatency: true
lowLatency: true,
// audioWorkletBufferLength: 40
})
}
if (!isLiveComponent.isLive && !slider) {
Expand Down Expand Up @@ -1203,6 +1207,7 @@

document.querySelector('#jitterMin').textContent = stats.jitterBuffer.min
document.querySelector('#jitterMax').textContent = stats.jitterBuffer.max
document.querySelector('#A_V').textContent = stats.audioCurrentTime - stats.videoCurrentTime
}

urlComponent = new Vue({
Expand Down

0 comments on commit 732c393

Please sign in to comment.