最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Monitor WebRTC video (media) stream quality in Javascript - Stack Overflow

programmeradmin2浏览0评论

I'm using WebRTC to stream video between peers, but changes in network conditions for some clients often produce quality changes in the received video stream. People blame the service for these quality drops and clearly I (the service) cannot do anything about their network conditions. But showing an indication that the quality dropped due to network conditions on the client's end would most likely alleviate this problem.

I've been searching Google & Stackoverflow for a while now and haven't seen any questions related to quality detection of ining audio or video stream. Is there a way to monitor the quality (current bitrate or dropped frames, anything) during the live stream?

I'm using WebRTC to stream video between peers, but changes in network conditions for some clients often produce quality changes in the received video stream. People blame the service for these quality drops and clearly I (the service) cannot do anything about their network conditions. But showing an indication that the quality dropped due to network conditions on the client's end would most likely alleviate this problem.

I've been searching Google & Stackoverflow for a while now and haven't seen any questions related to quality detection of ining audio or video stream. Is there a way to monitor the quality (current bitrate or dropped frames, anything) during the live stream?

Share Improve this question asked Jul 30, 2014 at 11:17 Mark TolmacsMark Tolmacs 3673 silver badges8 bronze badges 1
  • 1 If they are using Chrome, you can use chrome://webrtc-internals/. I answered a similar question on how to read the data dump you grab from there. – Benjamin Trent Commented Jul 30, 2014 at 12:53
Add a ment  | 

2 Answers 2

Reset to default 4

The getStats() API is what you are looking for if you want to programmatically access information in real time. webrtc-internals is a separate webpage, that is providing you more informations than getstats because it has access to chrome internals, but eventually most of those info will be made available to getstats so people can have access to them from within their app.

You can use webrtc-issue-detector to monitor the quality of webrtc session on the client side. It uses getStats() under the hood and identifies issues that may affect media quality like client CPU issues, network or server side issues.

发布评论

评论列表(0)

  1. 暂无评论